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; }
public static bool IsInside(this SizeF size, Size appropriateSize) { return(size.Height < appropriateSize.Height && size.Width < appropriateSize.Width); }