Beispiel #1
0
 public bool TestRenderMulti(MsdfNative.BitmapBase *renderDestination)
 {
     if (MsdfNative.MSDF_TestRenderMulti(_nativeHandle, renderDestination))
     {
         return(true);
     }
     MsdfNative.CheckAndThrow();
     return(false);
 }
Beispiel #2
0
        public BitmapBase(MsdfNative.BitmapBase *bitmapBase, bool owner = false)
        {
            NativeHandle = bitmapBase;
            _owner       = false;

            PixelData = MsdfNative.MSDF_Bitmap_GetPixelData(NativeHandle, out var width, out var height, out var channelCount);

            Width        = width;
            Height       = height;
            ChannelCount = channelCount;
            MsdfNative.CheckAndThrow();
        }