Exemplo n.º 1
0
 public PngTextDrawer(IWordsPlacer wordsPlacer, IBrushSelector brushSelector, FontFamily fontFamily, Color backgroundColor, Size imageSize)
 {
     this.wordsPlacer     = wordsPlacer;
     this.brushSelector   = brushSelector;
     this.backgroundColor = backgroundColor;
     textFontFamily       = fontFamily;
     this.imageSize       = imageSize;
 }
Exemplo n.º 2
0
 public static bool IsInside(this SizeF size, Size appropriateSize)
 {
     return(size.Height < appropriateSize.Height && size.Width < appropriateSize.Width);
 }