Get image from sbyte array

vinnie881

Well-known member
Joined
Sep 3, 2006
Messages
152
Programming Experience
3-5
I am trying to get a image from a sbyte array.

I am generating barcodes, and the function returns the image of the barcode in a sbyte array. I need to figure out how to get this in bitmap format so I can display it on my form.

I think I know how to dothis from a byte array, just not a sbyte

Thanks!
 
Last edited:
Convert SByte array to Byte array:
VB.NET:
Dim source() As SByte = {-1, 2, 3}
Dim dest(source.Length - 1) As Byte
System.Buffer.BlockCopy(source, 0, dest, 0, source.Length)
 
Back
Top