Hey Nigel,
Below please find my troubled code. This code is running in a thread and I need to Synchronize the CopyToBitmap procedure. If I don't synchronize, I get:
Access Violation at address X in module 'gdiplus.dll'. Read of address FFFFFFFFFFFFFFFF
for i := 1 to AnnotationImageEn.LayersCount - 1 do
begin
//
bmp := TIEBitmap.create;
TIETextLayer(layers[i]).Text := 'Just a Test';
//
// Why need it be synchronized ???
synchronize(procedure begin
AnnotationImageEn.Layers[i].CopyToBitmap( bmp);
end);
bmp.DrawToCanvasWithAlpha(DestCanvas, PosX, PosY, 127, 1);
bmp.Free;
//
end;
Thanks again...