View Single Post
  #2  
Old 27-10-2015, 01:17
peterf1999's Avatar
peterf1999 peterf1999 is offline
Die Hard Member
 
Join Date: Nov 2008
Location: Italy
Posts: 928
Thanks: 14
Thanked 983 Times in 236 Posts
peterf1999 is on a distinguished road
Quote:
Originally Posted by Razor12911 View Post
I was referring to the function that lets you set a region on the picture to be visible.
Code:
imgidx1:=loadimage(ExpandConstant('{tmp}\my.png'),WizardForm.Handle,0,0,450,750,IMF_Crop);
SetVisibleImgRgn(imgidx1,100,50,200,300);
DrawImages(WizardForm.Handle);

Code:
procedure SetVisibleImgRgn(ImgIdx,NewX,NewY,NewHeight,NewWidth: integer); 
external 'SetVisibleImgRgn@files:Isab.dll stdcall delayload';
Reply With Quote
The Following 2 Users Say Thank You to peterf1999 For This Useful Post:
RamiroCruzo (27-10-2015), Razor12911 (27-10-2015)