Upravit

Sdílet prostřednictvím


UIImage.Draw Method

Definition

Overloads

Draw(CGPoint, CGBlendMode, nfloat)

Draws the UIImage into the current graphics context at the specified , with blending mode and alpha as specified.

Draw(CGPoint)

Draws the image at the specified position.

Draw(CGRect)

This method will draw the image (scaling as necessary) in the rectangle specified.

Draw(CGRect, CGBlendMode, nfloat)

Draws the UIImage into the current graphics context in the specified , with blending mode and alpha as specified.

Draw(CGPoint, CGBlendMode, nfloat)

Draws the UIImage into the current graphics context at the specified , with blending mode and alpha as specified.

[Foundation.Export("drawAtPoint:blendMode:alpha:")]
[ObjCRuntime.ThreadSafe]
public virtual void Draw (CoreGraphics.CGPoint point, CoreGraphics.CGBlendMode blendMode, nfloat alpha);
abstract member Draw : CoreGraphics.CGPoint * CoreGraphics.CGBlendMode * nfloat -> unit
override this.Draw : CoreGraphics.CGPoint * CoreGraphics.CGBlendMode * nfloat -> unit

Parameters

point
CGPoint
blendMode
CGBlendMode
alpha
nfloat
Attributes

Remarks

(More documentation for this node is coming)

This can be used from a background thread.

Applies to

Draw(CGPoint)

Draws the image at the specified position.

[Foundation.Export("drawAtPoint:")]
[ObjCRuntime.ThreadSafe]
public virtual void Draw (CoreGraphics.CGPoint point);
abstract member Draw : CoreGraphics.CGPoint -> unit
override this.Draw : CoreGraphics.CGPoint -> unit

Parameters

point
CGPoint

Position where the image will be drawn.

Attributes

Remarks

This can be used from a background thread.

Applies to

Draw(CGRect)

This method will draw the image (scaling as necessary) in the rectangle specified.

[Foundation.Export("drawInRect:")]
[ObjCRuntime.ThreadSafe]
public virtual void Draw (CoreGraphics.CGRect rect);
abstract member Draw : CoreGraphics.CGRect -> unit
override this.Draw : CoreGraphics.CGRect -> unit

Parameters

rect
CGRect

The rectangle in which to draw the image.

Attributes

Remarks

This can be used from a background thread.

Applies to

Draw(CGRect, CGBlendMode, nfloat)

Draws the UIImage into the current graphics context in the specified , with blending mode and alpha as specified.

[Foundation.Export("drawInRect:blendMode:alpha:")]
[ObjCRuntime.ThreadSafe]
public virtual void Draw (CoreGraphics.CGRect rect, CoreGraphics.CGBlendMode blendMode, nfloat alpha);
abstract member Draw : CoreGraphics.CGRect * CoreGraphics.CGBlendMode * nfloat -> unit
override this.Draw : CoreGraphics.CGRect * CoreGraphics.CGBlendMode * nfloat -> unit

Parameters

rect
CGRect
blendMode
CGBlendMode
alpha
nfloat
Attributes

Remarks

(More documentation for this node is coming)

This can be used from a background thread.

Applies to