Class BitmapExtension
Inheritance
object
BitmapExtension
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: SaigeVision.Net.V2.Extensions
Assembly: SaigeVision.Net.V2.dll
Syntax
public static class BitmapExtension
Methods
View Source
BitmapToPointer(Bitmap)
Declaration
public static IntPtr BitmapToPointer(Bitmap bmp)
Parameters
| Type |
Name |
Description |
| Bitmap |
bmp |
|
Returns
View Source
BitmapToPointerWithoutPadding(Bitmap)
Declaration
public static IntPtr BitmapToPointerWithoutPadding(Bitmap bmp)
Parameters
| Type |
Name |
Description |
| Bitmap |
bmp |
|
Returns
View Source
ByteArrayToBitmapWithPadding(byte[], int, int, int)
Declaration
public static Bitmap ByteArrayToBitmapWithPadding(byte[] byteArray, int width, int height, int channel)
Parameters
| Type |
Name |
Description |
| byte[] |
byteArray |
|
| int |
width |
|
| int |
height |
|
| int |
channel |
|
Returns
View Source
GetChannel(Bitmap)
Declaration
public static int GetChannel(Bitmap bmp)
Parameters
| Type |
Name |
Description |
| Bitmap |
bmp |
|
Returns
View Source
Declaration
public static PixelFormat GetFormat(int channel)
Parameters
| Type |
Name |
Description |
| int |
channel |
|
Returns
| Type |
Description |
| PixelFormat |
|
View Source
PointerToBitmapWithPadding(IntPtr, int, int, int)
Declaration
public static Bitmap PointerToBitmapWithPadding(IntPtr intPtr, int width, int height, int channel)
Parameters
| Type |
Name |
Description |
| IntPtr |
intPtr |
|
| int |
width |
|
| int |
height |
|
| int |
channel |
|
Returns
View Source
PointerToByteArray(IntPtr, int)
Declaration
public static byte[] PointerToByteArray(IntPtr intPtr, int length)
Parameters
| Type |
Name |
Description |
| IntPtr |
intPtr |
|
| int |
length |
|
Returns
View Source
PointerToFloatArray(IntPtr, int)
Declaration
public static float[] PointerToFloatArray(IntPtr intPtr, int length)
Parameters
| Type |
Name |
Description |
| IntPtr |
intPtr |
|
| int |
length |
|
Returns
View Source
SetPalleteGrayscale(Bitmap)
Declaration
public static void SetPalleteGrayscale(Bitmap bmp)
Parameters
| Type |
Name |
Description |
| Bitmap |
bmp |
|
View Source
SetPalleteHeatmap(Bitmap)
Declaration
public static void SetPalleteHeatmap(Bitmap bmp)
Parameters
| Type |
Name |
Description |
| Bitmap |
bmp |
|
View Source
ToRGB(Bitmap)
Declaration
public static Bitmap ToRGB(Bitmap bmp)
Parameters
| Type |
Name |
Description |
| Bitmap |
bmp |
|
Returns