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
contextcontext where to draw
imageUIImage object which needs to be drawn in the context
preferencesimage preferences
rotationrotation degree
indexindex
topOffsettop offset
radiusradius
marginscontent 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
contextcontext where to draw
imageAnchoranchor image
rotationrotation degree
indexindex
radiusradius
sliceDegreeSlice degree
rotationOffsetRotation offset
ImageDrawing Protocol Reference