Rank: Member
Groups: Guest
Joined: 11/6/2006(UTC) Posts: 10
|
I have the ZoomMode property of the control set to "BestFitShrinkOnly", and it works fine. What I would like to be able to do is to add some spacing/padding between the edge of the control and the image. Right now, if the image is bigger than the control, then it is shrunk down and either the sides of the image or the top and bottom reach the edges of the control. The other thing I noticed is that if a border is set, then the image (if bigger than the control) does not have the border on the sides or the top and bottom (depending on whether the image touches the sides of the control or the top and bottom). Is this a problem with that zoom mode or is it supposed to not draw border if image has reached edge of control? Of course, if some internal spacing could be added, then the border might have space to be drawn...
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 8/3/2003(UTC) Posts: 1,070
Thanks: 1 times Was thanked: 12 time(s) in 12 post(s)
|
Hello, Quote:I have the ZoomMode property of the control set to "BestFitShrinkOnly", and it works fine. What I would like to be able to do is to add some spacing/padding between the edge of the control and the image. Right now, if the image is bigger than the control, then it is shrunk down and either the sides of the image or the top and bottom reach the edges of the control. This feature can be easily implemented by yourself - you can calculate width and height of image that you need, then evaluate zoom scale factor and set it up. You should perform these actions every time you resize control. Quote:The other thing I noticed is that if a border is set, then the image (if bigger than the control) does not have the border on the sides or the top and bottom (depending on whether the image touches the sides of the control or the top and bottom). Is this a problem with that zoom mode or is it supposed to not draw border if image has reached edge of control? Of course, if some internal spacing could be added, then the border might have space to be drawn... Could you submit case with screenshot? Edited by user Thursday, May 22, 2008 9:23:57 PM(UTC)
| Reason: Not specified |
|
|
|
|
Rank: Member
Groups: Guest
Joined: 11/6/2006(UTC) Posts: 10
|
Hi, here's a screenshot (sorry, I had trouble emailing it):
The control is set to black BackColor and 2-pixel white border. Zoom mode is best fit shrink only. As you can see, the top and bottom of the picture touches the edges since the control is smaller, and the border is not drawn. I guess I could try your solution with manual zoom calculation on resize and work around this.
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 8/3/2003(UTC) Posts: 1,070
Thanks: 1 times Was thanked: 12 time(s) in 12 post(s)
|
Hello, Thanks for your sctreenshot. This problem will be fixed in future releases of the product. |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.