Skip to main content
Module

x/imagemagick_deno/src/drawables/drawable-text.ts

Deno port of the WASM library for ImageMagick
Latest
File
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.// Licensed under the Apache License, Version 2.0.import { IDrawable } from "./drawable.ts";import { IDrawingWand } from "./drawing-wand.ts";
export class DrawableText implements IDrawable { private readonly _x: number; private readonly _y: number; private readonly _value: string;
constructor(x: number, y: number, value: string) { this._x = x; this._y = y; this._value = value; }
draw(wand: IDrawingWand): void { wand.text(this._x, this._y, this._value); }}