Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting an area from an image
Message
 
To
02/01/2003 15:15:49
Héctor Lizarraga
Gobierno Del Edo de Querétaro
Querétaro, Mexico
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
00737483
Message ID:
00737722
Views:
20
>This is the thing, I need to cut a rectangular area from a .bmp file, I have the coordinates (x1,y1,x2,y2) and I already did it creating an instance of Corel 9 and calling the OLE methods. But ... does anyone knows any method (API maybe) more light? Corel is a heavy app and sometimes crashes.
>
>any idea?

It's not a problem. For instance, you can use PictureClip ActiveX control:
oPicClip = CreateObject("PicClip.PictureClip")
oPicClip.Picture = LoadPicture("sample.bmp")
oPicClip.ClipX = 64
oPicClip.ClipY = 64
oPicClip.ClipHeight = 64
oPicClip.ClipWidth = 96
SavePicture(oPicClip.Clip, "clipped.bmp")
HTH,
Alexander
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform