C# 클래스 Sphere_Editor.EditorComponents.ImageEditorControl

상속: System.Windows.Forms.UserControl
파일 보기 프로젝트 열기: Radnen/spherestudio

공개 메소드들

메소드 설명
Blur ( int h, int v ) : void
ColorNoise ( ) : void
Copy ( ) : void
Destroy ( ) : void
GetEditorImageTiles ( int tw, int th ) : Sphere_Editor.EditorComponents.TileImage[]
ImageEditorControl ( ) : System
InvertColors ( ) : void
MonoNoise ( ) : void
Paste ( ) : void
RedoAction ( ) : void
ReplacePixels ( Color oldCol, Color newCol ) : void
ResizeImage ( int width, int height, bool scale, InterpolationMode mode ) : void

Resizes the image to new bounds.

SetImage ( Bitmap img ) : void
SetSize ( int width, int height ) : void
SetTileImageMap ( Bitmap img, short indices ) : void
SetZoom ( int zoom ) : void
Slide ( int ox, int oy ) : void

Draws the image slid to the new position.

ToGrayscale ( ) : void
ToggleGrid ( ) : void
UndoAction ( ) : void
UpdateControl ( ) : void

Positions the object in the middle of its container. Also toggles scrollbars where apropriate.

UpdateScrollbars ( ) : void
UpdateUndoRedoItems ( ) : void

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnScroll ( ScrollEventArgs se ) : void
ScrollToControl ( Control activeControl ) : Point

비공개 메소드들

메소드 설명
AddPage ( List pages, bool all ) : void
BlurItem_Click ( object sender, EventArgs e ) : void
ClearHistory ( ) : void
CopyImageItem_Click ( object sender, EventArgs e ) : void
DoTool ( Graphics g ) : void
DownItem_Click ( object sender, EventArgs e ) : void
DrawBG ( Graphics g ) : void
DrawGrid ( Graphics g ) : void

Draws the grid image X*Y times, depending on the size of the control.

DrawTool ( Graphics g ) : void
Flatten ( ) : void
FlipHorizontalItem_Click ( object sender, EventArgs e ) : void
FlipVerticalItem_Click ( object sender, EventArgs e ) : void
Gauss ( System.Single x, System.Single middle, System.Single width ) : System.Single
GetPixelItem_Click ( object sender, EventArgs e ) : void
GrayscaleItem_Click ( object sender, EventArgs e ) : void
ImageEditorControl_KeyDown ( object sender, KeyEventArgs e ) : void
ImageEditorControl_KeyUp ( object sender, KeyEventArgs e ) : void
ImageEditorControl_Load ( object sender, EventArgs e ) : void
ImageEditorControl_MouseDown ( object sender, MouseEventArgs e ) : void
ImageEditorControl_MouseMove ( object sender, MouseEventArgs e ) : void
ImageEditorControl_MouseUp ( object sender, MouseEventArgs e ) : void
ImageEditorControl_Paint ( object sender, PaintEventArgs e ) : void
InitializeComponent ( ) : void

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

InvertColorItem_Click ( object sender, EventArgs e ) : void
LeftItem_Click ( object sender, EventArgs e ) : void
MonoNoiseItem_Click ( object sender, EventArgs e ) : void
NoiseItem_Click ( object sender, EventArgs e ) : void
PasteImageItem_Click ( object sender, EventArgs e ) : void
RedoMenuItem_Click ( object sender, EventArgs e ) : void
ReplacePixelsItem_Click ( object sender, EventArgs e ) : void
RightItem_Click ( object sender, EventArgs e ) : void
RotateCCWItem_Click ( object sender, EventArgs e ) : void
RotateCWItem_Click ( object sender, EventArgs e ) : void
ToggleGridItem_Click ( object sender, EventArgs e ) : void
UndoMenuItem_Click ( object sender, EventArgs e ) : void
UpItem_Click ( object sender, EventArgs e ) : void
UpdateControlSize ( ) : void
UpdateEditRegion ( int x, int y ) : void
UpdateGrid ( ) : void

Initializes the grid which is a generated 512x512 texture.

UpdateHistory ( ) : void
UpdateHistoryAfter ( ) : void
UpdateHistoryAfter ( bool all ) : void
UpdateHistoryBefore ( ) : void
UpdateHistoryBefore ( bool all ) : void

메소드 상세

Blur() 공개 메소드

public Blur ( int h, int v ) : void
h int
v int
리턴 void

ColorNoise() 공개 메소드

public ColorNoise ( ) : void
리턴 void

Copy() 공개 메소드

public Copy ( ) : void
리턴 void

Destroy() 공개 메소드

public Destroy ( ) : void
리턴 void

Dispose() 보호된 메소드

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

GetEditorImageTiles() 공개 메소드

public GetEditorImageTiles ( int tw, int th ) : Sphere_Editor.EditorComponents.TileImage[]
tw int
th int
리턴 Sphere_Editor.EditorComponents.TileImage[]

ImageEditorControl() 공개 메소드

public ImageEditorControl ( ) : System
리턴 System

InvertColors() 공개 메소드

public InvertColors ( ) : void
리턴 void

MonoNoise() 공개 메소드

public MonoNoise ( ) : void
리턴 void

OnScroll() 보호된 메소드

protected OnScroll ( ScrollEventArgs se ) : void
se System.Windows.Forms.ScrollEventArgs
리턴 void

Paste() 공개 메소드

public Paste ( ) : void
리턴 void

RedoAction() 공개 메소드

public RedoAction ( ) : void
리턴 void

ReplacePixels() 공개 메소드

public ReplacePixels ( Color oldCol, Color newCol ) : void
oldCol Color
newCol Color
리턴 void

ResizeImage() 공개 메소드

Resizes the image to new bounds.
public ResizeImage ( int width, int height, bool scale, InterpolationMode mode ) : void
width int New width parameter.
height int New height parameter.
scale bool If true, it shall scale the image rather than increase canvas size.
mode InterpolationMode the resizing mode
리턴 void

ScrollToControl() 보호된 메소드

protected ScrollToControl ( Control activeControl ) : Point
activeControl System.Windows.Forms.Control
리턴 Point

SetImage() 공개 메소드

public SetImage ( Bitmap img ) : void
img System.Drawing.Bitmap
리턴 void

SetSize() 공개 메소드

public SetSize ( int width, int height ) : void
width int
height int
리턴 void

SetTileImageMap() 공개 메소드

public SetTileImageMap ( Bitmap img, short indices ) : void
img System.Drawing.Bitmap
indices short
리턴 void

SetZoom() 공개 메소드

public SetZoom ( int zoom ) : void
zoom int
리턴 void

Slide() 공개 메소드

Draws the image slid to the new position.
public Slide ( int ox, int oy ) : void
ox int horizontal increments.
oy int vertical increments.
리턴 void

ToGrayscale() 공개 메소드

public ToGrayscale ( ) : void
리턴 void

ToggleGrid() 공개 메소드

public ToggleGrid ( ) : void
리턴 void

UndoAction() 공개 메소드

public UndoAction ( ) : void
리턴 void

UpdateControl() 공개 메소드

Positions the object in the middle of its container. Also toggles scrollbars where apropriate.
public UpdateControl ( ) : void
리턴 void

UpdateScrollbars() 공개 메소드

public UpdateScrollbars ( ) : void
리턴 void

UpdateUndoRedoItems() 공개 메소드

public UpdateUndoRedoItems ( ) : void
리턴 void