Hi,
i have an array of bytes that includes the raw RGB data of an image. I also know the width, height and Bitdepth of the original image. Now i want to create a bitmap from that information.
I found this constructor of System.Drawing.Bitmap
Public Sub New( _
ByVal width As Integer, _
ByVal height As Integer, _
ByVal stride As Integer, _
ByVal format As PixelFormat, _
ByVal scan0 As IntPtr _
)
but im not sure how to get an IntPtr from my byte array data. Is it possible to use this constructor to create my bitmap from raw RGB data?
Marc
i have an array of bytes that includes the raw RGB data of an image. I also know the width, height and Bitdepth of the original image. Now i want to create a bitmap from that information.
I found this constructor of System.Drawing.Bitmap
Public Sub New( _
ByVal width As Integer, _
ByVal height As Integer, _
ByVal stride As Integer, _
ByVal format As PixelFormat, _
ByVal scan0 As IntPtr _
)
but im not sure how to get an IntPtr from my byte array data. Is it possible to use this constructor to create my bitmap from raw RGB data?
Marc