>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