canadarules
2006-06-22 14:02:41
Here's my problem. I want to make a tidbit in my script where it loads a bitmap, draws a rectangle at a specific point, and saves it. Here's what I have so far:
All variables are defined. This isn't a problem with the coding structure. It just gives me a runtime error.
Help please?
PS. The files are all there, and are loaded properly. I checked.
intTempBitmap := LoadBitmap('TEMP.BMP');
MarkingCanvas:=GetBitmapCanvas(intTempBitmap);
MarkingCanvas.Brush.Color := 16777215;
MarkingCanvas.Pen.Color := 16777215;
MarkingCanvas.Rectangle(5,5,7,7);
strPath := '../Folder/screenshot.bmp';
SaveBitmap(intTempBitmap,strPath);
CopyCanvas(MarkingCanvas,DebugCanvas,0,0,765,505,0,0,765,505);
MarkingCanvas.Free;
FreeBitmap(intTempBitmap);All variables are defined. This isn't a problem with the coding structure. It just gives me a runtime error.
Help please?
PS. The files are all there, and are loaded properly. I checked.