Page 1 of 1

image resize?

Posted: Fri Nov 11, 2016 3:49 pm
by Rockart10
Is there any way to resize the appearance of an image into a window with the mouse wheel, like in the Window native image viewer? I can manage to open a windows and to scroll the image with the virtualwidth and virtualheight settings of the window, but I can't find how to manage its scale. I use BT_BitmapWidth, BT_BitmapHeight (Bos Taurus) to correctly view the image file into a windows, but it doesn't seem to me that BT_BitmapCopyAndResize or BT_Resize may be used to change interactively its appearance into the windows. I specify that I don't want to resize and save it with the new dimensions, but only to resize its view into the window, scaling it by rotating the mouse wheel.

Any help will be greatly appreciated...

Best of all

Re: image resize?

Posted: Tue Apr 11, 2017 10:14 pm
by Pablo César
I think you can arrange mouse's wheel thru event procedure.

Something here: viewtopic.php?p=32834#p32834 you will find for GRID but you can adapt to Image control.

And to resize image, you can use the own image control width/height...