Page 1 of 1

How to scale an image in the FullView() function

Posted: Mon Apr 04, 2022 12:27 am
by Eugene Lutsenko
How can I make the FullView() function render images of different sizes in a window of the size set as parameters?

Re: How to scale an image in the FullView() function

Posted: Tue Apr 05, 2022 12:39 pm
by Auge_Ohr
hi Eugene,

i guess you talk about "ImageView" where you have Function "FullView"

Code: Select all

         oDlg:drawingarea:paint := {|x,y,obj| x:=obj:currentSize(), ;
                                     oImage:draw( oPS, {0, 0, x[1], x[2]}, ;
                                     {0, 0, oImage:xSize, oImage:ySize},,;
                                     GRA_BLT_BBO_IGNORE), Sleep(0.1) }
as you can see it use oImage Size to "paint" on "FullSize"
when you want to "zoom" it you have to change Pos/Size of oImage

Re: How to scale an image in the FullView() function

Posted: Wed Apr 06, 2022 3:14 am
by Eugene Lutsenko
Thanks, Jimmy, it worked out. By the way, can you tell me from my other message where the recovery error DC_GetRefresh(): viewtopic.php?f=2&t=2996