var size: CGSize
The size of the image.
let baseline: CGFloat
The distance from the top of the image to its baseline.
var shading: GraphicsContext .Shading?
An optional shading to fill the image with.
Availability 有効性
Technology
struct ResolvedImage
You resolve an Image
in preparation for drawing it into a context, either manually by calling resolve(_:)
, or automatically when calling draw(_:
or draw(_:
. The resolved image takes into account environment values like the display resolution and current color scheme.
var size: CGSize
let baseline: CGFloat
var shading: GraphicsContext .Shading?
func draw(Image, at: CGPoint, anchor: UnitPoint )
func draw(Image, in: CGRect, style: FillStyle )
func draw(GraphicsContext .ResolvedImage , at: CGPoint, anchor: UnitPoint )
func draw(GraphicsContext .ResolvedImage , in: CGRect, style: FillStyle )
func resolve(Image) -> GraphicsContext .ResolvedImage