Page 1 of 1

Loading an image into the viewer at a different position

Posted: Tue Dec 11, 2007 7:13 am
by fbmachines
Hello again,
Is there currently a way to load an image into the viewer control other than the default, middle center position?

like the imagealignment property.....

ImagePositionMiddleLeft = 0
ImagePositionMiddleRight = 1
ImagePositionMiddleCenter = 2
ImagePositionTopLeft = 4
ImagePositionTopRight = 5
ImagePositionTopCenter = 6
ImagePositionBottomLeft = 7
ImagePositionBottomRight = 8
ImagePositionBottomCenter = 9


Also, is there a way to stretch vertical or stretch horizontal in the viewer control?


Thanks,
Corey

Posted: Wed Dec 12, 2007 12:24 pm
by Loïc
Hi,

Good idea,

I will add a new ImagePosition property within the next release.

Regards,

Loïc

Posted: Wed Dec 12, 2007 3:05 pm
by fbmachines
Fantastic. Sorry, I stuck another question in at the bottom. Is there a way to strech vertical or stretch horizontal in the viewer control?

Thanks,
Corey

Posted: Wed Dec 12, 2007 4:12 pm
by Loïc
Sorry Corey I forget the second question.

However, what do you mean by "strech vertical or strech horizontal in the viewer control? ".

Did you try the SetZoomHeightControl(), SetZoomWidthControl() and the SetZoomFitControl() methods ?

Regards,

Loïc

Posted: Wed Dec 12, 2007 4:21 pm
by fbmachines
Yes, I did try those but is there a way to use those and not keep the image ratio? ie. Say if you want to stretch the height but keep the original width and vice versa for stretch to width.