TBitmap (or any descendant of TRaserImage) has a RawImage: TRawImage property. Here you have directly access to the pixel data.
Hi, Marc,
Thanks for the reply.
In Win32,
Yes, I did use TBitmap.RawImage originally, I can mostly paint from FBmp1 to FBmp2 without problem, but sometimes it didn't paint. Don't know why?
Also I need to draw FBmp2 to TPaintBox. If I use TLazIntfImage -> FBmp2, I can use BitBlt(PaintBox1.Canvas.Handle, 0,0, FBmp2.Width, FBmp2.Height, FBmp2.Canvas.Handle, 0,0 srcCopy) to show FBmp2 on TPaintbox without problem. But never success if I use FBmp2.RawImage.
Briefly,
1. With FBmp1.RawImage, FBmp2.RawImage, I can mostly draw FBmp1 on FBmp2, but not all the time.
2. I can't draw FBmp2 on TPaintBox by using
BitBlt(PaintBox1.Canvas.Handle, 0,0,FBmp2.Width, FBmp2.Height, FBmp2.Handle,0,0,SrcCopy);
neither PaintBox1.Canvas.Draw(0,0, FBmp2);
In WinCE,
So far, never successed.
Daniel