How to scale an image in the FullView() function
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
How to scale an image in the FullView() function
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
hi Eugene,
i guess you talk about "ImageView" where you have Function "FullView"
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
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) }
when you want to "zoom" it you have to change Pos/Size of oImage
greetings by OHR
Jimmy
Jimmy
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
Re: How to scale an image in the FullView() function
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