Class

TImage

Overview

TImage is an object that represents an image in your app.

Properties

var width: CGFloat

var height: CGFloat

var pixels: [UInt8]?

Initializers

init(image: CGImage)

init?(contentsOfFile filename: String)

init?(contentsOfFileInBundle filename: String)

Methods

func loadPixels()

func savePixels()

func pixel(at point: CGPoint) -> TPixel

func pixel(atX x: Int, y: Int) -> TPixel

func color(atX x: Int, y: Int) -> TColor

func set(pixel: TPixel, x: Int, y: Int)

Related

TColor

TPixel