C# Class TweetWall.Apple2TweetDisplay

This converts a tweet to Apple II format and sends to the Apple II. There's some pretty rough code here that was hacked up over a weekend.
Show file Open project: yergacheffe/apple2t Class Usage Examples

Public Methods

Method Description
Apple2TweetDisplay ( PictureBox pb1, PictureBox pb2, PictureBox pb3 ) : System
DisplayTweet ( WallItem item ) : void
LoadCode ( ) : void
RenderImage ( string fromuser, string uri, byte lores, byte hires, bool tweet ) : void

Private Methods

Method Description
Clamp ( byte val, int delta ) : byte
DeltaSquared ( byte a, byte b ) : double
Dither ( Color c, int x, int y ) : Color
FindClosestColor ( Color c, List clut, Color &lc, double &error ) : int
FindLoresColor ( Color c, Color &lc ) : int
Plot ( byte loresBuffer, int x, int y, int ci ) : void
RenderFrom ( string text, byte lores ) : void
RenderMessage ( string text, byte lores ) : void
RenderTextLine ( string text, byte lores, int baseOffset ) : void
SendHiresThreadProc ( object param ) : void

Method Details

Apple2TweetDisplay() public method

public Apple2TweetDisplay ( PictureBox pb1, PictureBox pb2, PictureBox pb3 ) : System
pb1 System.Windows.Forms.PictureBox
pb2 System.Windows.Forms.PictureBox
pb3 System.Windows.Forms.PictureBox
return System

DisplayTweet() public method

public DisplayTweet ( WallItem item ) : void
item WallItem
return void

LoadCode() public method

public LoadCode ( ) : void
return void

RenderImage() public method

public RenderImage ( string fromuser, string uri, byte lores, byte hires, bool tweet ) : void
fromuser string
uri string
lores byte
hires byte
tweet bool
return void