Skip to content

rfdickerson/SimplePNG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimplePNG

A simple PNG image library for Swift.

Features

  • Write PNG files

General usage:

let image = Image(width: 300,
                  height: 200,
                  colorType: ColorType.rgb,
                  bitDepth: 8,
                  rows: rows)
        
try! image.write(to: URL(fileURLWithPath: "colorimage.png"))

The image data is stored in an array of rows. Each row is an array of bytes.

About

PNG image library for Swift

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages