Beispiel #1
0
 public BitmapRenderer(BitmapFontResolver fontResolver = null)
 {
     _disposeFontResolver = fontResolver == null;
     FontResolver         = fontResolver ?? new BitmapFontResolver();
     RegisterRenderer(new PanelRenderer());
     RegisterRenderer(new TextRenderer <Link>());
     RegisterRenderer(new TextRenderer <Label>());
     RegisterRenderer(new TextRenderer <TextBox>());
     RegisterRenderer(new ImageRenderer());
     RegisterRenderer(new ViewportRenderer());
 }
Beispiel #2
0
 public BitmapRendererContext(Graphics graphics, BitmapFontResolver fontResolver, BitmapCache localBitmapCache)
 {
     _localBitmapCache = localBitmapCache;
     FontResolver      = fontResolver;
     Graphics          = graphics;
 }