public DrawText ( string TextToDraw, |
||
TextToDraw | string | The text to draw. |
FontToUse | The font to use. | |
BrushUsing | The brush to use. | |
BoxToDrawWithin | The box to draw within. | |
return |
public void DrawText() { using (Utilities.Media.SwiftBitmap TestObject = new Utilities.Media.SwiftBitmap(@"..\..\Data\Image\Lenna.jpg")) { TestObject.DrawText("Test text.", new Font(FontFamily.GenericSansSerif, 20.0f), Brushes.Black, new RectangleF(0, 0, 300, 300)).Save(@".\Testing\LennaDrawText.jpg"); Assert.True(new Utilities.IO.FileInfo(@".\Testing\LennaDrawText.jpg").ReadBinary().SequenceEqual(new Utilities.IO.FileInfo(@"..\..\BitmapResults\LennaDrawText.jpg").ReadBinary())); } }