ZoomHeightControl Display Bug
-
- Posts: 24
- Joined: Tue Nov 27, 2007 2:50 am
ZoomHeightControl Display Bug
I just purchased a Nikon D300 D-SLR camera and am having issues when I load a JPG from this camera into a GDViewer Control and try to use ZoomHeightControl to zoom to height. The issue is there is a black band across the bottom of the image indicating the image didn't zoom to the edge of the control. You can use the samples from Nikon to test this...
http://nikonimaging.com/global/products ... c_002b.jpg
I am using GDPicture Pro 4.4.0.2
Thanks,
Corey
http://nikonimaging.com/global/products ... c_002b.jpg
I am using GDPicture Pro 4.4.0.2
Thanks,
Corey
Last edited by fbmachines on Wed Dec 05, 2007 1:03 am, edited 3 times in total.
-
- Posts: 24
- Joined: Tue Nov 27, 2007 2:50 am
-
- Posts: 24
- Joined: Tue Nov 27, 2007 2:50 am
-
- Posts: 24
- Joined: Tue Nov 27, 2007 2:50 am
Hello,
Thanks for the update but I am still having an issue with displaying these images when the viewer is a certain size (or ratio). Try viewing and zooming to height with the sample image when the gdviewer size is 789 width and 535 height. The picture will zoom to width instead of height. Also, rotate the picture 90 degrees and resize the gdviewer control to 438 width and 641 height and perform a zoom to width. It will zoom to height instead. Sorry it is kind of hard to explain, so if you need a better explanation let me know.
Thanks,
Corey
Thanks for the update but I am still having an issue with displaying these images when the viewer is a certain size (or ratio). Try viewing and zooming to height with the sample image when the gdviewer size is 789 width and 535 height. The picture will zoom to width instead of height. Also, rotate the picture 90 degrees and resize the gdviewer control to 438 width and 641 height and perform a zoom to width. It will zoom to height instead. Sorry it is kind of hard to explain, so if you need a better explanation let me know.
Thanks,
Corey
-
- Posts: 24
- Joined: Tue Nov 27, 2007 2:50 am
Hi Corey,
This behaviour has been improved within the 4.5 release.
However if you have an image ratio which is close than the viewer ratio you can obtain a zoom by width instead the zoom by height if you are using scrollbars.
Why ?
Because if you ask to the control to adjust the image to height it will probably needs to display the horizontal scrollbar.
=> The height of the image are reduced
=> The width of the image are reduced too
=> The viewer doesn"t needs to display the scoolbar
=> The image are fitted to the width of the viewer to maximize the displayed height area.
I know it is a bit difficult to understand but I think it is the best way to adjust the image height to the max.
Best regards,
Loïc Carrère
This behaviour has been improved within the 4.5 release.
However if you have an image ratio which is close than the viewer ratio you can obtain a zoom by width instead the zoom by height if you are using scrollbars.
Why ?
Because if you ask to the control to adjust the image to height it will probably needs to display the horizontal scrollbar.
=> The height of the image are reduced
=> The width of the image are reduced too
=> The viewer doesn"t needs to display the scoolbar
=> The image are fitted to the width of the viewer to maximize the displayed height area.
I know it is a bit difficult to understand but I think it is the best way to adjust the image height to the max.
Best regards,
Loïc Carrère
-
- Posts: 24
- Joined: Tue Nov 27, 2007 2:50 am
That seems kind of quirky. If the "zoom to width" is called, I would assume that the width of the image would span the width of the control then if the height of the image exceeds the control's height the scrollbar would come into play for the height (regardless if the ratio of the control is close to the ratio of the image). Vice versa if "zoom to height" is called. With the sample picture I linked to in the first post (width to height ratio of 1.5056179775280898), a Viewer control with a size of 789w x 515h (width to height ratio of 1.5320388349514562) through 789w x 541h (width to height ratio of 1.4584103512014787) will exhibit this behavior.
-
- Posts: 24
- Joined: Tue Nov 27, 2007 2:50 am
Re: ZoomHeightControl Display Bug
Hey Loïc,
In v5.0 will there be a true "zoom to width" and "zoom to height" regardless if the scrollbars are used? I've stopped using this control because of this quark but would like to come back to it if this has been corrected.
Thanks,
Corey
In v5.0 will there be a true "zoom to width" and "zoom to height" regardless if the scrollbars are used? I've stopped using this control because of this quark but would like to come back to it if this has been corrected.
Thanks,
Corey
-
- Posts: 24
- Joined: Tue Nov 27, 2007 2:50 am
Re: ZoomHeightControl Display Bug
Would you consider an option to always show the scrollbars, even when they are not needed? This option would correct this odd behavior because the image wouldn't have to be resized when the scrollbars are fit into the equation.
Thanks for listening to me rant,
Corey
Thanks for listening to me rant,
Corey
Re: ZoomHeightControl Display Bug
Hi Corey,
It is a good idea to solve your issue.
I add this feature to the roadmap of GdPicture Pro 5.1.
Best regards,
Loïc
It is a good idea to solve your issue.
I add this feature to the roadmap of GdPicture Pro 5.1.
Best regards,
Loïc
-
- Posts: 24
- Joined: Tue Nov 27, 2007 2:50 am
Re: ZoomHeightControl Display Bug
Fantastic! By the way, congrats on the upcoming release. I look forward to both 5.0 and 5.1
Thanks,
Corey
Thanks,
Corey
Who is online
Users browsing this forum: Ahrefs [Bot] and 1 guest