Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

hello

 

i'm 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

Menge

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...