How to scale an image in the FullView() function

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
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

#1 Post by Eugene Lutsenko »

How can I make the FullView() function render images of different sizes in a window of the size set as parameters?

User avatar
Auge_Ohr
Posts: 1405
Joined: Wed Feb 24, 2010 3:44 pm

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

#2 Post 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
greetings by OHR
Jimmy

User avatar
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

#3 Post 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

Post Reply