src/BigGustave/PngBuilder.cs
/// <summary>
/// Create a builder from a <see cref="Png"/>.
/// </summary>
Create a builder from a .
Create a builder from a .
public static PngBuilder FromPng(Png png)
        {
            var result = Create(png.Width, png.Height, png.HasAlphaChannel);
            for (int y = 0; y < png.Height; y++)
            {
                for (int x = 0; x < png.Width; x++)
                {
                    result.SetPixel(png.GetPixel(x, y), x, y);
                }
            }
            return result;
        }
public static PngBuilder FromPng ( Png png ) { var result = Create ( png . Width , png . Height , png . HasAlphaChannel ) ; for ( int y = 0 ; y < png . Height ; y ++ ) { for ( int x = 0 ; x < png . Width ; x ++ ) { result . SetPixel ( png . GetPixel ( x , y ) , x , y ) ; } } return result ; }
Create a builder from a .
Create a builder from a .
png
Png