Loading an image into the viewer at a different position

Feature Requests for GdPicture.NET.
Post Reply
fbmachines
Posts: 24
Joined: Tue Nov 27, 2007 2:50 am

Loading an image into the viewer at a different position

Post by fbmachines » Tue Dec 11, 2007 7:13 am

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
Last edited by fbmachines on Wed Dec 12, 2007 4:36 pm, edited 1 time in total.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Post by Loïc » Wed Dec 12, 2007 12:24 pm

Hi,

Good idea,

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

Regards,

Loïc

fbmachines
Posts: 24
Joined: Tue Nov 27, 2007 2:50 am

Post by fbmachines » Wed Dec 12, 2007 3:05 pm

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
Last edited by fbmachines on Wed Dec 12, 2007 4:35 pm, edited 1 time in total.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Post by Loïc » Wed Dec 12, 2007 4:12 pm

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

fbmachines
Posts: 24
Joined: Tue Nov 27, 2007 2:50 am

Post by fbmachines » Wed Dec 12, 2007 4:21 pm

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests