magickBorderImage method
Future<bool>
magickBorderImage({
- required PixelWand borderColorWand,
- required int width,
- required int height,
- required CompositeOperator compose,
magickBorderImage()
surrounds the image with a border of the color
defined by the bordercolor pixel wand.
This method runs inside an isolate different from the main isolate.
borderColorWand
: the border color pixel wand.width
: the border width.height
: the border height.compose
: the composite operator.
Implementation
Future<bool> magickBorderImage({
required PixelWand borderColorWand,
required int width,
required int height,
required CompositeOperator compose,
}) async =>
await _magickCompute(
_magickBorderImage,
_MagickBorderImageParams(
_wandPtr.address,
borderColorWand._wandPtr.address,
width,
height,
compose.index,
),
);