Hi Lars,

"Lars Eirik Rønning" <[EMAIL PROTECTED]> wrote on 05/29/2008 06:40:05 
AM:

> I wish to insert images at the position of these placeholders.
> What i have done is found the placeholders and copied their 
> attributes (such as x and y)
> Thereby i get the placeholders' parents and insert my new images.

   Do you also set the 'width' and 'height' on the image elemnts?

> My problem is that the pictures are not inserted automatically in the 
box..
> Is there any helper class which for instance allows me to 
> automatically calculate the matrix for the new image to be inserted,
> or do i have to use pure math to do this?

   Well if you set width and height the image should fill the same
rectangle as your placeholders, pursuant to the preserveAspectRatio
attribute (which controls how the referenced image fills the rectangle 
when it's aspect ratio doesn't match the rectangles).

Thomas DeWeese | CDG Advanced Development | 
Eastman Kodak Company | 343 State Street | Rochester, NY 14650-0128 | 
[EMAIL PROTECTED] | 585 781-9059 | 
www.kodak.com 

<<image/gif>>

Reply via email to