ImageDrawing
protocol ImageDrawing
Image drawing protocol
-
Draws image
Declaration
Swift
func drawImage(in context: CGContext, image: SFWImage, preferences: ImagePreferences, rotation: CGFloat, index: Int, topOffset: CGFloat, radius: CGFloat, margins: SFWConfiguration.Margins)
Parameters
context
context where to draw
image
UIImage object which needs to be drawn in the context
preferences
image preferences
rotation
rotation degree
index
index
topOffset
top offset
radius
radius
margins
content margins
-
drawAnchorImage(in:
Extension methodimageAnchor: isCentered: rotation: index: radius: sliceDegree: rotationOffset: ) Draws anchor image
Declaration
Swift
func drawAnchorImage(in context: CGContext, imageAnchor: SFWConfiguration.AnchorImage, isCentered: Bool, rotation: CGFloat, index: Int, radius: CGFloat, sliceDegree: CGFloat, rotationOffset: CGFloat)
Parameters
context
context where to draw
imageAnchor
anchor image
rotation
rotation degree
index
index
radius
radius
sliceDegree
Slice degree
rotationOffset
Rotation offset