Alter the scan0 pointer?

Menge

Well-known member
Joined
Jul 3, 2003
Messages
108
Location
Recife - PE - Brazil
hello

im making a program and i need to have a bitmap out of a scan0 line from another bitmap (not really another bitmap - but a Microsoft.DirectX.Direct3D.GraphicsStream object).

i know there is this constructor:
new Bitmap(this.Width, this.Height, this.Width*4, System.Drawing.Imaging.PixelFormat.Format32bppArgb, Image.InternalData);

but it takes a while to read and copy the data from the Image.InternalData pointer.

my question is: is there a way to alter the destination bitmap object scan0 pointer to be the same as the Image.InternalData pointer?

because i need speed on this one. and i need a copy
 
Back
Top