ImageGear .NET v25.2 - Updated
Developer Guide / How to Work with... / SVG and Other Vector Formats / Rasterizing a Vector Drawing
In This Topic
    Rasterizing a Vector Drawing
    In This Topic

    To rasterize a vector drawing, use the Rasterize Method of ImGearVectorPage Class.  This creates a copy of the drawing in bitmap format. For example:

    C#
    Copy Code
    if (igPage is ImGearVectorPage)
        igPage = ((ImGearVectorPage)igPage).Rasterize();
    

    To control the size of the rasterized bitmap, you can do one of following:

    SVG cannot be resized before it's rasterized; SVG doesn't have control parameters, and cannot be resized using the Resize Method. To resize an SVG, you need to rasterize it first, then resize it.