C# 클래스 CrossStitchCreator.ImagingTool

파일 보기 프로젝트 열기: adrianj/CrossStitchCreator 1 사용 예제들

공개 메소드들

메소드 설명
FitToControl ( System ctrl ) : Bitmap
FitToControl ( System ctrl, InterpolationMode iMode ) : Bitmap

The idea here is to stop image from stretching.

ImagingTool ( Image inputImage ) : System
ImagingTool ( Image inputImage, IColourMap cmap ) : System
ReduceColourDepth ( object o, BackgroundWorker w, DoWorkEventArgs e ) : object
ReduceColourDepth ( ) : void

This is the simplest method - it just truncates to RGB555. if Image has N pixels, total time ~= N.

ReduceColourDepth ( IColourMap cmap ) : void

Convert colours to fit a given colourmap

ReduceColourDepth ( int maxColours ) : void

RemoveFromPalette ( Color colorToRemove ) : void
RemoveFromPalette ( IColourInfo colorToRemove ) : void
ReplaceColour ( Color colorToReplace, Color newColor ) : void
ReplaceColoursWithPatterns ( object p, BackgroundWorker w, DoWorkEventArgs e ) : object
ReplaceColoursWithPatterns ( PatternEditor patterns ) : void
ResizeImage ( Size size ) : void
ResizeImage ( Size size, InterpolationMode iMode ) : void
UpdateColourMapFrequency ( ) : void

Resets ColourInfo.Frequency fields to the number of times that colour appears in the image. If Image has N pixels, and ColourMap has M colours, total time = M + Nlog(M) ~= N

UpdateColourMapFromImage ( ) : void

Resets ColourInfo.Frequency fields, and removes colour not present in Colourmap. If Image has N pixels, and ColourMap has M colours, total time = 3M + Nlog(M) ~= N

메소드 상세

FitToControl() 공개 메소드

public FitToControl ( System ctrl ) : Bitmap
ctrl System
리턴 System.Drawing.Bitmap

FitToControl() 공개 메소드

The idea here is to stop image from stretching.
public FitToControl ( System ctrl, InterpolationMode iMode ) : Bitmap
ctrl System
iMode InterpolationMode
리턴 System.Drawing.Bitmap

ImagingTool() 공개 메소드

public ImagingTool ( Image inputImage ) : System
inputImage Image
리턴 System

ImagingTool() 공개 메소드

public ImagingTool ( Image inputImage, IColourMap cmap ) : System
inputImage Image
cmap IColourMap
리턴 System

ReduceColourDepth() 공개 메소드

public ReduceColourDepth ( object o, BackgroundWorker w, DoWorkEventArgs e ) : object
o object
w System.ComponentModel.BackgroundWorker
e System.ComponentModel.DoWorkEventArgs
리턴 object

ReduceColourDepth() 공개 메소드

This is the simplest method - it just truncates to RGB555. if Image has N pixels, total time ~= N.
public ReduceColourDepth ( ) : void
리턴 void

ReduceColourDepth() 공개 메소드

Convert colours to fit a given colourmap
public ReduceColourDepth ( IColourMap cmap ) : void
cmap IColourMap The colourmap to fit.
리턴 void

ReduceColourDepth() 공개 메소드

public ReduceColourDepth ( int maxColours ) : void
maxColours int
리턴 void

RemoveFromPalette() 공개 메소드

public RemoveFromPalette ( Color colorToRemove ) : void
colorToRemove Color
리턴 void

RemoveFromPalette() 공개 메소드

public RemoveFromPalette ( IColourInfo colorToRemove ) : void
colorToRemove IColourInfo
리턴 void

ReplaceColour() 공개 메소드

public ReplaceColour ( Color colorToReplace, Color newColor ) : void
colorToReplace Color
newColor Color
리턴 void

ReplaceColoursWithPatterns() 공개 메소드

public ReplaceColoursWithPatterns ( object p, BackgroundWorker w, DoWorkEventArgs e ) : object
p object
w System.ComponentModel.BackgroundWorker
e System.ComponentModel.DoWorkEventArgs
리턴 object

ReplaceColoursWithPatterns() 공개 메소드

public ReplaceColoursWithPatterns ( PatternEditor patterns ) : void
patterns PatternEditor
리턴 void

ResizeImage() 공개 메소드

public ResizeImage ( Size size ) : void
size System.Drawing.Size
리턴 void

ResizeImage() 공개 메소드

public ResizeImage ( Size size, InterpolationMode iMode ) : void
size System.Drawing.Size
iMode InterpolationMode
리턴 void

UpdateColourMapFrequency() 공개 메소드

Resets ColourInfo.Frequency fields to the number of times that colour appears in the image. If Image has N pixels, and ColourMap has M colours, total time = M + Nlog(M) ~= N
public UpdateColourMapFrequency ( ) : void
리턴 void

UpdateColourMapFromImage() 공개 메소드

Resets ColourInfo.Frequency fields, and removes colour not present in Colourmap. If Image has N pixels, and ColourMap has M colours, total time = 3M + Nlog(M) ~= N
public UpdateColourMapFromImage ( ) : void
리턴 void