Safe Haskell | None |
---|---|
Language | Haskell98 |
- drawingWand :: MonadResource m => m (ReleaseKey, PDrawingWand)
- getFillColor :: MonadResource m => PDrawingWand -> PPixelWand -> m ()
- setFillColor :: MonadResource m => PDrawingWand -> PPixelWand -> m ()
- setFillPatternURL :: MonadResource m => PDrawingWand -> Text -> m ()
- setFillRule :: MonadResource m => PDrawingWand -> FillRule -> m ()
- setFont :: MonadResource m => PDrawingWand -> ByteString -> m ()
- setFontSize :: MonadResource m => PDrawingWand -> Double -> m ()
- setGravity :: MonadResource m => PDrawingWand -> GravityType -> m ()
- setStrokeAntialias :: MonadResource m => PDrawingWand -> Bool -> m ()
- setStrokeColor :: MonadResource m => PDrawingWand -> PPixelWand -> m ()
- setStrokeDashArray :: MonadResource m => PDrawingWand -> [Double] -> m ()
- setStrokeLineCap :: MonadResource m => PDrawingWand -> LineCap -> m ()
- setStrokeLineJoin :: MonadResource m => PDrawingWand -> LineJoin -> m ()
- setStrokeOpacity :: MonadResource m => PDrawingWand -> Double -> m ()
- setStrokeWidth :: MonadResource m => PDrawingWand -> Double -> m ()
- setTextAntialias :: MonadResource m => PDrawingWand -> Bool -> m ()
- drawAnnotation :: MonadResource m => PDrawingWand -> Double -> Double -> Text -> m ()
- drawCircle :: MonadResource m => PDrawingWand -> Double -> Double -> Double -> Double -> m ()
- drawComposite :: MonadResource m => PDrawingWand -> CompositeOperator -> Double -> Double -> Double -> Double -> PMagickWand -> m ()
- drawEllipse :: MonadResource m => PDrawingWand -> Double -> Double -> Double -> Double -> Double -> Double -> m ()
- drawLine :: MonadResource m => PDrawingWand -> Double -> Double -> Double -> Double -> m ()
- drawPoint :: MonadResource m => PDrawingWand -> Double -> Double -> m ()
- drawPolygon :: MonadResource m => PDrawingWand -> [PointInfo] -> m ()
- drawRectangle :: MonadResource m => PDrawingWand -> Double -> Double -> Double -> Double -> m ()
- drawRoundRectangle :: MonadResource m => PDrawingWand -> Double -> Double -> Double -> Double -> Double -> Double -> m ()
- drawColor :: MonadResource m => PDrawingWand -> Double -> Double -> PaintMethod -> m ()
- pushDrawingWand :: MonadResource m => PDrawingWand -> m ()
- popDrawingWand :: MonadResource m => PDrawingWand -> m ()
- rotate :: MonadResource m => PDrawingWand -> Double -> m ()
- translate :: MonadResource m => PDrawingWand -> Double -> Double -> m ()
- pushPattern :: MonadResource m => PDrawingWand -> Text -> Double -> Double -> Double -> Double -> m ()
- popPattern :: MonadResource m => PDrawingWand -> m ()
Documentation
drawingWand :: MonadResource m => m (ReleaseKey, PDrawingWand)
getFillColor :: MonadResource m => PDrawingWand -> PPixelWand -> m ()
returns the fill color used for drawing filled objects.
setFillColor :: MonadResource m => PDrawingWand -> PPixelWand -> m ()
DrawSetFillColor() sets the fill color to be used for drawing filled objects.
setFillPatternURL :: MonadResource m => PDrawingWand -> Text -> m ()
Sets the URL to use as a fill pattern
for filling objects. Only local URLs ("#identifier") are supported
at this time. These local URLs are normally created by defining a named
fill pattern with pushPattern
/popPattern
.
setFillRule :: MonadResource m => PDrawingWand -> FillRule -> m ()
Sets the fill rule to use while drawing polygons.
setFont :: MonadResource m => PDrawingWand -> ByteString -> m ()
Sets the fully-sepecified font to use when annotating with text.
setFontSize :: MonadResource m => PDrawingWand -> Double -> m ()
Sets the font pointsize to use when annotating with text.
setGravity :: MonadResource m => PDrawingWand -> GravityType -> m ()
Sets the text placement gravity to use when annotating with text.
setStrokeAntialias :: MonadResource m => PDrawingWand -> Bool -> m ()
setStrokeColor :: MonadResource m => PDrawingWand -> PPixelWand -> m ()
sets the color used for stroking object outlines.
setStrokeDashArray :: MonadResource m => PDrawingWand -> [Double] -> m ()
Specifies the pattern of dashes and gaps used to stroke paths. The stroke dash array represents an array of numbers that specify the lengths of alternating dashes and gaps in pixels. If an odd number of values is provided, then the list of values is repeated to yield an even number of values. To remove an existing dash array, pass an emtpy list. A typical stroke dash array might contain the members 5 3 2.
setStrokeLineCap :: MonadResource m => PDrawingWand -> LineCap -> m ()
setStrokeLineJoin :: MonadResource m => PDrawingWand -> LineJoin -> m ()
Specifies the shape to be used at the corners of paths
(or other vector shapes) when they are stroked.
Values of LineJoin
are undefinedJoin
, miterJoin
, roundJoin
and bevelJoin
.
setStrokeOpacity :: MonadResource m => PDrawingWand -> Double -> m ()
specifies the opacity of stroked object outlines.
setStrokeWidth :: MonadResource m => PDrawingWand -> Double -> m ()
sets the width of the stroke used to draw object outlines.
setTextAntialias :: MonadResource m => PDrawingWand -> Bool -> m ()
Controls whether text is antialiased. Text is antialiased by default.
:: MonadResource m | |
=> PDrawingWand | |
-> Double | x ordinate to left of text |
-> Double | y ordinate to text baseline |
-> Text | text to draw |
-> m () |
Draws text on the image.
:: MonadResource m | |
=> PDrawingWand | |
-> Double | origin x ordinate |
-> Double | origin y ordinate |
-> Double | perimeter x ordinate |
-> Double | perimeter y ordinate |
-> m () |
Draws a circle on the image.
:: MonadResource m | |
=> PDrawingWand | |
-> CompositeOperator | composition operator |
-> Double | x ordinate of top left corner |
-> Double | y ordinate of top left corner |
-> Double | width to resize image to prior to compositing, specify zero to use existing width |
-> Double | height to resize image to prior to compositing, specify zero to use existing height |
-> PMagickWand | image to composite is obtained from this wand |
-> m () |
Composites an image onto the current image, using the specified composition operator, specified position, and at the specified size.
:: MonadResource m | |
=> PDrawingWand | |
-> Double | origin x ordinate |
-> Double | origin y ordinate |
-> Double | radius in x |
-> Double | radius in y |
-> Double | starting rotation in degrees |
-> Double | ending rotation in degrees |
-> m () |
Draws an ellipse on the image.
:: MonadResource m | |
=> PDrawingWand | |
-> Double | starting x ordinate |
-> Double | starting y ordinate |
-> Double | ending x ordinate |
-> Double | ending y ordinate |
-> m () |
Draws a line on the image using the current stroke color, stroke opacity, and stroke width.
drawPoint :: MonadResource m => PDrawingWand -> Double -> Double -> m ()
Draws a point using the current fill color.
:: MonadResource m | |
=> PDrawingWand | |
-> [PointInfo] | coordinates |
-> m () |
Draws a polygon using the current stroke, stroke width, and fill color or texture, using the specified array of coordinates.
:: MonadResource m | |
=> PDrawingWand | |
-> Double | x ordinate of first coordinate |
-> Double | y ordinate of first coordinate |
-> Double | x ordinate of second coordinate |
-> Double | y ordinate of second coordinate |
-> m () |
Draws a rectangle given two coordinates and using the current stroke, stroke width, and fill settings.
:: MonadResource m | |
=> PDrawingWand | |
-> Double | x ordinate of first coordinate |
-> Double | y ordinate of first coordinate |
-> Double | x ordinate of second coordinate |
-> Double | y ordinate of second coordinate |
-> Double | radius of corner in horizontal direction |
-> Double | radius of corner in vertical direction |
-> m () |
DrawRoundRectangle() draws a rounted rectangle given two coordinates, x & y corner radiuses and using the current stroke, stroke width, and fill settings.
drawColor :: MonadResource m => PDrawingWand -> Double -> Double -> PaintMethod -> m ()
DrawColor() draws color on image using the current fill color, starting at specified position, and using specified paint method. The available paint methods are:
PointMethod: Recolors the target pixel ReplaceMethod: Recolor any pixel that matches the target pixel. FloodfillMethod: Recolors target pixels and matching neighbors. ResetMethod: Recolor all pixels.
pushDrawingWand :: MonadResource m => PDrawingWand -> m ()
Clones the current drawing wand to create a new drawing wand.
The original drawing wand(s) may be returned to by invoking popDrawingWand
.
The drawing wands are stored on a drawing wand stack. For every Pop there must
have already been an equivalent Push.
popDrawingWand :: MonadResource m => PDrawingWand -> m ()
Destroys the current drawing wand and returns to the previously pushed drawing wand. Multiple drawing wands may exist. It is an error to attempt to pop more drawing wands than have been pushed, and it is proper form to pop all drawing wands which have been pushed.
rotate :: MonadResource m => PDrawingWand -> Double -> m ()
Applies the specified rotation to the current coordinate space.
translate :: MonadResource m => PDrawingWand -> Double -> Double -> m ()
Applies a translation to the current coordinate system which moves the coordinate system origin to the specified coordinate.
:: MonadResource m | |
=> PDrawingWand | |
-> Text | pattern identification for later reference |
-> Double | |
-> Double | |
-> Double | |
-> Double | |
-> m () |
Indicates that subsequent commands up to a popPattern
command comprise
the definition of a named pattern. The pattern space is assigned top left
corner coordinates, a width and height, and becomes its own drawing space.
Anything which can be drawn may be used in a pattern definition.
Named patterns may be used as stroke or brush definitions.
popPattern :: MonadResource m => PDrawingWand -> m ()
Terminates a pattern definition.