Class ImageUtility
An iOS image utility.
Inheritance
System.Object
ImageUtility
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: FM.LiveSwitch.Cocoa
Assembly: FM.LiveSwitch.Cocoa.dll
Syntax
public class ImageUtility
Methods
BufferToCGImage(VideoBuffer)
Buffers to cg image.
Declaration
public static CGImage BufferToCGImage(VideoBuffer buffer)
Parameters
Type | Name | Description |
---|---|---|
VideoBuffer | buffer | The buffer. |
Returns
Type | Description |
---|---|
CoreGraphics.CGImage |
BufferToImage(VideoBuffer)
Buffers to image.
Declaration
public static NSImage BufferToImage(VideoBuffer buffer)
Parameters
Type | Name | Description |
---|---|---|
VideoBuffer | buffer | The buffer. |
Returns
Type | Description |
---|---|
AppKit.NSImage |
CGImageToBuffer(CGImage)
Converts a CGImage to buffer.
Declaration
public static VideoBuffer CGImageToBuffer(CGImage cgImage)
Parameters
Type | Name | Description |
---|---|---|
CoreGraphics.CGImage | cgImage | The cg image. |
Returns
Type | Description |
---|---|
VideoBuffer |
ImageToBuffer(NSImage)
Declaration
public static VideoBuffer ImageToBuffer(NSImage image)
Parameters
Type | Name | Description |
---|---|---|
AppKit.NSImage | image |
Returns
Type | Description |
---|---|
VideoBuffer |