Struct CoreGraphics.CGImageRef
public ref struct CoreGraphics.CGImageRef : IDisposable
- Implements
- Inherited Members
Constructors
CGImageRef(nint)
public CGImageRef(nint self)
Parameters
selfnint
Fields
Self
public readonly nint Self
Field Value
Properties
Height
public nuint Height { get; }
Property Value
Width
public nuint Width { get; }
Property Value
Methods
CGImageRelease(nint)
public static extern void CGImageRelease(nint image)
Parameters
imagenint
Create(nuint, nuint, nuint, nuint, nuint, nint, CGBitmapInfo, nint, bool)
Creates a new CGImage from raw pixel data provided by a data provider. The caller owns the returned image and must dispose it.
public static CoreGraphics.CGImageRef Create(nuint width, nuint height, nuint bitsPerComponent, nuint bitsPerPixel, nuint bytesPerRow, nint colorspace, CoreGraphics.CGBitmapInfo bitmapInfo, nint provider, bool shouldInterpolate = true)
Parameters
widthnuintheightnuintbitsPerComponentnuintbitsPerPixelnuintbytesPerRownuintcolorspacenintbitmapInfoCoreGraphics.CGBitmapInfoprovidernintshouldInterpolatebool
Returns
CreateWithImageInRect(nint, CGRect)
Creates a new CGImage cropped to rect (in image pixel coordinates).
The caller owns the returned image and must dispose it.
public static CoreGraphics.CGImageRef CreateWithImageInRect(nint image, CoreGraphics.CGRect rect)
Parameters
imagenintrectCoreGraphics.CGRect
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Operators
implicit operator nint(CGImageRef)
public static implicit operator nint(CoreGraphics.CGImageRef r)