protected override void OnGLPainterReady(GLPainter painter)
        {
            //example;
            //test1_atlas=> atlas filename
            _chk_checked   = new AtlasImageBinder("test1_atlas", "\\chk_checked.png");
            _chk_unchecked = new AtlasImageBinder("test1_atlas", "\\chk_unchecked.png");

            _pcx     = painter.PainterContext;
            _painter = painter;
            //
            //string atlasInfoFile = "test1_atlas"; //see SampleFontAtlasBuilder below
            //_bmpAtlasPainter.ChangeBitmapAtlas(atlasInfoFile);
        }
Beispiel #2
0
 internal void RequestImageAsync(LayoutFarm.ImageBinder binder, VgVisualElement imgRun, object requestFrom)
 {
     if (_imgReqHandler != null)
     {
         _imgReqHandler(binder, imgRun, requestFrom);
     }
     else
     {
         //ask for coment resource IO
         _imgReqHandler = VgResourceIO.VgImgIOHandler;
         if (_imgReqHandler != null)
         {
             _imgReqHandler(binder, imgRun, requestFrom);
         }
     }
 }