Contents

draw(at:)

Draws the image at the specified point in the current context.

Declaration

func draw(at point: CGPoint)

Parameters

  • point:

    The point at which to draw the top-left corner of the image.

Discussion

This method draws the entire image in the current graphics context, respecting the image’s orientation setting. In the default coordinate system, images are situated down and to the right of the specified point. This method respects any transforms applied to the current graphics context, however.

This method draws the image at full opacity using the CGBlendMode.normal blend mode.

See Also

Drawing images