mirror of
https://github.com/markpmlim/GraphicConverterIIGS.git
synced 2024-06-03 11:29:33 +00:00
b14c2c0484
Converts a file with the Apple IIGS Graphic Format $C0/$0000 to a macOS NSImage object.
12 lines
363 B
Swift
12 lines
363 B
Swift
/*
|
|
A simple Playground demo to load an unpacked Apple IIGS Super-Hires graphic file ($C1/$0000) and display it.
|
|
Written in Swift 3.x
|
|
Requires XCode 8.x or later.
|
|
*/
|
|
import Cocoa
|
|
import PlaygroundSupport // for the live preview
|
|
|
|
let viewFrame = NSMakeRect(0, 0, 640, 400)
|
|
let imageView = ImageView(frame: viewFrame)
|
|
PlaygroundPage.current.liveView = imageView
|