GraphicConverterIIGS/ConvertBitMap.playground/Contents.swift
markpmlim b14c2c0484 Convert Apple IIGS graphics
Converts a file with the Apple IIGS Graphic Format $C0/$0000 to a macOS NSImage object.
2018-09-17 08:51:42 +08:00

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