C# Class Sample.DrawingTools

Afficher le fichier Open project: abbyysdk/ocrsdk.com Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

CreateImage() public static méthode

public static CreateImage ( Size size, Brush brush ) : Image
size System.Drawing.Size
brush System.Drawing.Brush
Résultat Image

DrawBarChart() public static méthode

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
Résultat void

DrawNamedValue() public static méthode

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
Résultat System.Drawing.SizeF

DrawScaledImage() public static méthode

public static DrawScaledImage ( Image image, Image imageToScale, Rectangle rect ) : void
image Image
imageToScale Image
rect System.Drawing.Rectangle
Résultat void

LoadScaledImage() public static méthode

public static LoadScaledImage ( string filePath, Size size ) : Image
filePath string
size System.Drawing.Size
Résultat Image

ScaleImage() public static méthode

public static ScaleImage ( Image original, Size size ) : Image
original Image
size System.Drawing.Size
Résultat Image

ScaleToFit() public static méthode

public static ScaleToFit ( Size objectSize, Size viewSize ) : float
objectSize System.Drawing.Size
viewSize System.Drawing.Size
Résultat float

TransparentColor() public static méthode

public static TransparentColor ( Color c ) : Color
c Color
Résultat Color