Class ImageUtility
Utility class for common image operations.
Inheritance
System.Object
ImageUtility
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class ImageUtility
Methods
BitmapToBuffer(Bitmap)
Converts a bitmap to a video buffer.
Declaration
public static VideoBuffer BitmapToBuffer(Bitmap bitmap)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Bitmap | bitmap | The bitmap. |
Returns
Type | Description |
---|---|
VideoBuffer | The buffer. |
BitmapToBuffer(Bitmap, VideoBuffer)
Converts a bitmap to a video buffer.
Declaration
public static void BitmapToBuffer(Bitmap bitmap, VideoBuffer buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Bitmap | bitmap | The bitmap. |
VideoBuffer | buffer | The buffer. |
BufferToBitmap(VideoBuffer)
Converts a video buffer to a bitmap.
Declaration
public static Bitmap BufferToBitmap(VideoBuffer buffer)
Parameters
Type | Name | Description |
---|---|---|
VideoBuffer | buffer | The buffer. |
Returns
Type | Description |
---|---|
System.Drawing.Bitmap | The bitmap. |
BufferToBitmap(VideoBuffer, Bitmap)
Converts a video buffer to a bitmap.
Declaration
public static void BufferToBitmap(VideoBuffer buffer, Bitmap bitmap)
Parameters
Type | Name | Description |
---|---|---|
VideoBuffer | buffer | The buffer. |
System.Drawing.Bitmap | bitmap | The bitmap. |