Initializer

init(image:sourceRect:scale:)

Creates a shape-filling shape style.

Declaration 宣言

init(image: Image, sourceRect: CGRect = CGRect(x: 0, y: 0, width: 1, height: 1), scale: CGFloat = 1)

Parameters パラメータ

image

The image to be drawn. 描画されることになる画像。

sourceRect

A unit-space rectangle defining how much of the source image to draw. どのくらいソース画像を描画するか定義している単位空間矩形。 The results are undefined if sourceRect selects areas outside the [0, 1] range in either axis.

scale

A scale factor applied to the image during rendering.