Method | Description | |
---|---|---|
CalculateBitmapSize ( int imgWidth, int imgHeight, PixelFormat format ) : int |
Calculate the needed size for a bitmap
|
|
ConvertDataToBitmap ( byte data, int imgWidth, int imgHeight, PixelFormat format ) : |
Convert raw image data into a Bitmap object
|
|
CopyDataToUnmanagedMemory ( byte data ) : |
Copy data from managed to unmanaged memory
|
|
CopyFileToManagedArray ( string path ) : byte[] |
Get a file from the disk and copy it into a managed byte array
|
|
GetDataFromUnmanagedMemory ( |
Get data from unmanaged memory back to managed memory
|
public static CalculateBitmapSize ( int imgWidth, int imgHeight, PixelFormat format ) : int | ||
imgWidth | int | The image width |
imgHeight | int | The image height |
format | PixelFormat | The pixel format you want to use |
return | int |
public static ConvertDataToBitmap ( byte data, int imgWidth, int imgHeight, PixelFormat format ) : |
||
data | byte | The byte array containing the image data |
imgWidth | int | The width of your image |
imgHeight | int | The height of your image |
format | PixelFormat | The PixelFormat the Bitmap should use |
return |
public static CopyDataToUnmanagedMemory ( byte data ) : |
||
data | byte | The data you want to copy |
return |
public static CopyFileToManagedArray ( string path ) : byte[] | ||
path | string | The path to the file |
return | byte[] |
public static GetDataFromUnmanagedMemory ( |
||
source | A Pointer where the data lifes | |
lenght | int | How many bytes you want to copy |
return | byte[] |