managed-commons / SvgNet

Fork of the SVG library for .NET that makes a GdiGraphics that "draws" on a SVG model
BSD 3-Clause "New" or "Revised" License
84 stars 37 forks source link

Added simple compression to DrawBitmapData. #46

Closed T1G0FF closed 3 years ago

T1G0FF commented 3 years ago

Updated DrawBitmapData to compress consecutive duplicate colors in the same line and draw them as a single rectangle. Generally results in smaller file sizes and marginally quicker execution due to less DrawImagePixel calls.