drawSetViewbox method

void drawSetViewbox(
  1. double x1,
  2. double y1,
  3. double x2,
  4. double y2,
)

DrawSetViewbox() sets the overall canvas size to be recorded with the drawing vector data. Usually this will be specified using the same size as the canvas image. When the vector data is saved to SVG or MVG formats, the viewbox is use to specify the size of the canvas image that a viewer will render the vector data on.

  • x1 : left x ordinate
  • y1 : top y ordinate
  • x2 : right x ordinate
  • y2 : bottom y ordinate

Implementation

void drawSetViewbox(double x1, double y1, double x2, double y2) =>
    _magickWandBindings.DrawSetViewbox(_wandPtr, x1, y1, x2, y2);