Create Images from Scratch
Document Solutions for Imaging (DsImaging) empowers developers to generate high-quality images programmatically using powerful drawing and rendering APIs. Whether you're creating new graphics, generating custom diagrams, or rendering SVG illustrations, DsImaging provides a robust set of tools for building image content from scratch in a variety of popular formats, including JPEG, PNG, BMP, TIFF, GIF, SVG, ICO, and WebP.
At the heart of this functionality are the GcBitmap and GcBitmapGraphics classes. GcBitmap represents a 32-bit ARGB bitmap in memory, while its CreateGraphics method provides access to a GcBitmapGraphics instance, which is a versatile drawing surface for rendering shapes, text, and vector graphics directly onto the bitmap. Developers can draw rounded rectangles, lines, and complex geometric shapes, fill areas with solid colors, and apply precise text layout using the TextFormat class. This is ideal for dynamically generating image-based reports, infographics, or diagrams within server-side C# applications. Whether you’re drawing charts, icons, or annotated diagrams, DsImaging gives you complete control over your image creation pipeline.