C# Class PICO8Tool.MainForm

Inheritance: System.Windows.Forms.Form
Mostra file Open project: foobit/PICO8Tool

Private Properties

Property Type Description
EmbedP8 void
EncodeImage string
ExtractP8 void
FindGFXBegin void
FindGFXEnd void
InitializeComponent void
LoadFile void
LoadImage void
PicViewer_CurrentScaleChanged void
SaveImage void
SetImage void
SetP8File void
SupportedImageType bool
applyPicoPalette void
btnAbout_Click void
btnEmbed_Click void
btnExtract_Click void
btnNew_Click void
btnOpen_Click void
btnResetView_Click void
btnShowSettings_Click void
btnToggleGrid_Click void
colorDifference float
grayscale float
snapColorToPicoPalette byte

Public Methods

Method Description
MainForm ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnDragDrop ( DragEventArgs e ) : void
OnDragEnter ( DragEventArgs e ) : void

Private Methods

Method Description
EmbedP8 ( string file, Image img ) : void
EncodeImage ( Bitmap img ) : string
ExtractP8 ( string file ) : void
FindGFXBegin ( TextReader s ) : void
FindGFXEnd ( TextReader s, Action handler ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

LoadFile ( string file ) : void
LoadImage ( string file ) : void
PicViewer_CurrentScaleChanged ( object sender, EventArgs e ) : void
SaveImage ( Image img, string file ) : void
SetImage ( Image img ) : void
SetP8File ( string file ) : void
SupportedImageType ( string file ) : bool
applyPicoPalette ( Bitmap img ) : void
btnAbout_Click ( object sender, EventArgs e ) : void
btnEmbed_Click ( object sender, EventArgs e ) : void
btnExtract_Click ( object sender, EventArgs e ) : void
btnNew_Click ( object sender, EventArgs e ) : void
btnOpen_Click ( object sender, EventArgs e ) : void
btnResetView_Click ( object sender, EventArgs e ) : void
btnShowSettings_Click ( object sender, EventArgs e ) : void
btnToggleGrid_Click ( object sender, EventArgs e ) : void
colorDifference ( Color col1, Color col2 ) : float
grayscale ( Color col ) : float
snapColorToPicoPalette ( Color inCol ) : byte

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

MainForm() public method

public MainForm ( ) : System
return System

OnDragDrop() protected method

protected OnDragDrop ( DragEventArgs e ) : void
e System.Windows.Forms.DragEventArgs
return void

OnDragEnter() protected method

protected OnDragEnter ( DragEventArgs e ) : void
e System.Windows.Forms.DragEventArgs
return void