T O P I C R E V I E W |
kowal |
Posted - Aug 30 2023 : 13:10:29 Hi, I'd like to do some operations on the new created IEBitmap i.e. draw some symbols to use them later in my application. But I can not access the IEBitmap canvas.
here is the snippet of my code
procedure Tfienv.ietest1Click(Sender: TObject); var iebmp: tiebitmap; begin iebmp := tieBitmap.Create;
// I got av error here - the Canvas property is nil iebmp.Canvas.Brush.Color := clBlack; iebmp.Canvas.Pen.Color := clWhite; end;
How can I create an image using TIEBitmap?
regards S. Kowalski
|
1 L A T E S T R E P L I E S (Newest First) |
xequte |
Posted - Aug 30 2023 : 18:43:48 Hi
Canvas requires a valid VclBitmap, so call iebmp.VclBitmap after creating to initialize it (this is automatic in the next update).
https://www.imageen.com/help/TIEBitmap.VclBitmap.html
However, rather than Canvas, you are better to use the GDI+ canvas instead:
https://www.imageen.com/help/TIEBitmap.IECanvas.html
It is much more powerful:
https://www.imageen.com/help/TIECanvas.html
Nigel Xequte Software www.imageen.com
|
|
|