C# Class AnimalCrossingQR.PatternEditor

显示文件 Open project: jefff/animalcrossingqr

Public Methods

Method Description
BeginPreview ( ) : void
Clear ( ) : void
EndPreview ( ) : void
GetPattern ( ) : Pattern
LoadPattern ( AC pattern ) : void
PatternEditor ( ) : System
SetColorPalette ( AC palette ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
DrawGrid ( Graphics graphics ) : void
DrawPattern ( Graphics graphics ) : void
DrawPoint ( Point point, byte color ) : void
FromPaletteColor ( AC color ) : Color
GetPixelAt ( int x, int y ) : Point
InitializeComponent ( ) : void

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

PatternEditor_MouseDown ( object sender, MouseEventArgs e ) : void
PatternEditor_MouseMove ( object sender, MouseEventArgs e ) : void
PatternEditor_Paint ( object sender, PaintEventArgs e ) : void
RenderPattern ( AC pattern, int scale ) : Image

Method Details

BeginPreview() public method

public BeginPreview ( ) : void
return void

Clear() public method

public Clear ( ) : void
return void

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

EndPreview() public method

public EndPreview ( ) : void
return void

GetPattern() public method

public GetPattern ( ) : Pattern
return AnimalCrossingQR.AC.Pattern

LoadPattern() public method

public LoadPattern ( AC pattern ) : void
pattern AC
return void

PatternEditor() public method

public PatternEditor ( ) : System
return System

SetColorPalette() public method

public SetColorPalette ( AC palette ) : void
palette AC
return void