Hello!
I have in PPTX Presentation this code:
Hi,
For cropping the image, original height, width and the resolution of the image (from image property summary tab) has to be taken. Then apply the l,t,r attribute values of <a:srcRect> element to the original value to get the cropped image.
Sheela
For image width and height , we have to look on cx and cy value in slide.xml.there cx and cy in emuthat we have to convert in inch. This is the formula cx/(360000*2.54) cy/(360000*2.54) this is applicable in both the cases before and after cropping
Sheela,
No problem when I calculate the coordenates (cx and cy).
Using the formula:
Image CX: (2362200 / (360000 * 2.54)) * 96;CX = 248 px;
Image CY: (1905000 / (360000 * 2.54)) * 96;CY = 200 px;
PERFECT RESULTS!
____________________________________________
I have difficult to work with <srcrect> T, L, R, B.
When I calculate the cropped area ... I get low values using the formula:
Top Crop:T = (30556 / (360000 * 2.54)) * 96;T = 3.2 pixels
Left Crop:L = (15555 / (360000 * 2.54)) * 96;L = 1.6 pixelsRight Crop:R = (15556 / (360000 * 2.54)) * 96;R = 1.6 pixels
What is the problem? This values aren't correct!
Mallika and Sheela,
Thanks!