C# Class TechfairKinect.Components.Particles.ParticleStringGeneration.StringBitmapGenerator

Afficher le fichier Open project: techx/old-techfair-kinect-booth Class Usage Examples

Méthodes publiques

Méthode Description
CreateBitmap ( Size screenBounds ) : Bitmap
StringBitmapGenerator ( string displayString, PixelFormat pixelFormat, FontFamily fontFamily ) : System

Private Methods

Méthode Description
DrawString ( Bitmap bitmap, float fontSize, Rectangle rectangle ) : void
FontSizeFits ( Size screenBounds, float fontSize ) : bool
GetFontSize ( Size screenBounds ) : float
GetStringRectangleFromFontSize ( Size screenBounds, float fontSize ) : Rectangle
GetStringSize ( float fontSize ) : Size

Method Details

CreateBitmap() public méthode

public CreateBitmap ( Size screenBounds ) : Bitmap
screenBounds System.Drawing.Size
Résultat System.Drawing.Bitmap

StringBitmapGenerator() public méthode

public StringBitmapGenerator ( string displayString, PixelFormat pixelFormat, FontFamily fontFamily ) : System
displayString string
pixelFormat PixelFormat
fontFamily System.Drawing.FontFamily
Résultat System