Safe Haskell | None |
---|---|
Language | Haskell2010 |
Utility to combine images.
Synopsis
- data Alignment
- high :: Alignment
- low :: Alignment
- mid :: Alignment
- overlay :: Image -> Image -> Image
- overlayAlign :: Alignment -> Alignment -> Image -> Image -> Image
- overlayOffset :: Image -> Float -> Float -> Image -> Image
- overlayAlignOffset :: Alignment -> Alignment -> Image -> Float -> Float -> Image -> Image
- overlayXY :: Image -> Float -> Float -> Image -> Image
- underlay :: Image -> Image -> Image
- underlayAlign :: Alignment -> Alignment -> Image -> Image -> Image
- underlayOffset :: Image -> Float -> Float -> Image -> Image
- underlayXY :: Image -> Float -> Float -> Image -> Image
- underlayAlignOffset :: Alignment -> Alignment -> Image -> Float -> Float -> Image -> Image
- beside :: Image -> Image -> Image
- besides :: [Image] -> Image
- besideAlign :: Alignment -> Image -> Image -> Image
- besidesAlign :: Alignment -> [Image] -> Image
- above :: Image -> Image -> Image
- aboves :: [Image] -> Image
- aboveAlign :: Alignment -> Image -> Image -> Image
- abovesAlign :: Alignment -> [Image] -> Image
- placeImage :: Image -> Float -> Float -> Image -> Image
- placeImages :: [Image] -> [(Float, Float)] -> Image -> Image
- placeImageAlign :: Image -> Float -> Float -> Alignment -> Alignment -> Image -> Image
- placeImagesAlign :: [Image] -> [(Float, Float)] -> Alignment -> Alignment -> Image -> Image
Documentation
Position to align at. On x-axis, low means left, high means right. On y-axis, low means bottom, high means top.
Position to align at. On x-axis, low means left, high means right. On y-axis, low means bottom, high means top.
Position to align at. On x-axis, low means left, high means right. On y-axis, low means bottom, high means top.
Places i1
on top of i2
and uses xAl
and yAl
for alignment.
Places i1
on top of i2
and moves i2
by x
pixels to the right,
and y
pixels down.
overlayAlignOffset :: Alignment -> Alignment -> Image -> Float -> Float -> Image -> Image Source #
Combination of overlayAlign
and overlayOffset
.
Places i1
on top of i2
by lining them on their top left corners,
then i2
is shifted to the right by x
pixels and down by y
pixels.
underlayAlign :: Alignment -> Alignment -> Image -> Image -> Image Source #
Same of overlayAlign
, but with image arguments flipped.
underlayOffset :: Image -> Float -> Float -> Image -> Image Source #
Same of overlayOffset
, but with image arguments flipped.
underlayXY :: Image -> Float -> Float -> Image -> Image Source #
Same of overlayXY
, but with image arguments flipped.
underlayAlignOffset :: Alignment -> Alignment -> Image -> Float -> Float -> Image -> Image Source #
Same of overlayAlignOffset
, but with image arguments flipped.
Constructs an image by placing i1
on the left of i2
, aligned along
the center.
Constructs an image by placing all images in a horizontal row, aligned
along the center such that the first image in is
is on the left.
Constructs an image by placing i1
on the left of i2
, aligned as
specified by al
.
Constructs an image by placing all images in a horizontal row, aligned
as specified by al
such that the first image in is
is on the left.
Constructs an image by placing i1
on top of i2
, aligned along
the center.
Constructs an image by placing all images in a vertical row, aligned
along the center such that the first image in is
is at the top.
Constructs an image by placing i1
on top of i2
, aligned as
specified by al
.
Constructs an image by placing all images in a veritcal row, aligned
as specified by al
such that the first image in is
is at the top.
Places i1
on top of i2
with i1
's center at position (x, y)
.
Unlike 2htdp/image's place-image, placeImage increases the binding box
so that both images fit in it, instead of cropping parts of i1
that
lay outside of i2
's bounds.
Places each i
in is
onto i2
using placeImage
, using the coordinates
(x, y)
in ps
.
Like placeImage
, but anchors i1
on i2
by the alignment specified
by xAl
and yAl
.