image resize?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
Rockart10
Posts: 22
Joined: Fri Nov 11, 2016 1:38 pm

image resize?

Post 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
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Re: image resize?

Post 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...
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Post Reply