C# 클래스 Sample.DrawingTools

파일 보기 프로젝트 열기: abbyysdk/ocrsdk.com 1 사용 예제들

공개 메소드들

메소드 설명
CreateImage ( Size size, Brush brush ) : Image
DrawBarChart ( Bitmap bitmap, Rectangle rect, Font font, BarData bars, string xLabel, string yLabel, string comment ) : void
DrawNamedValue ( Graphics g, string name, string value, Font font, PointF point ) : SizeF
DrawScaledImage ( Image image, Image imageToScale, Rectangle rect ) : void
LoadScaledImage ( string filePath, Size size ) : Image
ScaleImage ( Image original, Size size ) : Image
ScaleToFit ( Size objectSize, Size viewSize ) : float
TransparentColor ( Color c ) : Color

메소드 상세

CreateImage() 공개 정적인 메소드

public static CreateImage ( Size size, Brush brush ) : Image
size System.Drawing.Size
brush System.Drawing.Brush
리턴 Image

DrawBarChart() 공개 정적인 메소드

public static DrawBarChart ( Bitmap bitmap, Rectangle rect, Font font, BarData bars, string xLabel, string yLabel, string comment ) : void
bitmap System.Drawing.Bitmap
rect System.Drawing.Rectangle
font System.Drawing.Font
bars BarData
xLabel string
yLabel string
comment string
리턴 void

DrawNamedValue() 공개 정적인 메소드

public static DrawNamedValue ( Graphics g, string name, string value, Font font, PointF point ) : SizeF
g System.Drawing.Graphics
name string
value string
font System.Drawing.Font
point System.Drawing.PointF
리턴 System.Drawing.SizeF

DrawScaledImage() 공개 정적인 메소드

public static DrawScaledImage ( Image image, Image imageToScale, Rectangle rect ) : void
image Image
imageToScale Image
rect System.Drawing.Rectangle
리턴 void

LoadScaledImage() 공개 정적인 메소드

public static LoadScaledImage ( string filePath, Size size ) : Image
filePath string
size System.Drawing.Size
리턴 Image

ScaleImage() 공개 정적인 메소드

public static ScaleImage ( Image original, Size size ) : Image
original Image
size System.Drawing.Size
리턴 Image

ScaleToFit() 공개 정적인 메소드

public static ScaleToFit ( Size objectSize, Size viewSize ) : float
objectSize System.Drawing.Size
viewSize System.Drawing.Size
리턴 float

TransparentColor() 공개 정적인 메소드

public static TransparentColor ( Color c ) : Color
c Color
리턴 Color