Exemple #1
0
 internal void CreateBitmap(uint fontId, uint glyphIndex, FontClient.GlyphBufferData data, int outlineWidth)
 {
     NDalicManualPINVOKE.FontClient_CreateBitmap__SWIG_0(swigCPtr, fontId, glyphIndex, FontClient.GlyphBufferData.getCPtr(data), outlineWidth);
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #2
0
        public void FontClientGlyphBufferDataHeight()
        {
            tlog.Debug(tag, $"FontClientGlyphBufferDataHeight START");

            var testingTarget = new FontClient.GlyphBufferData();;

            Assert.IsNotNull(testingTarget, "Return a null object of GlyphBufferData");
            Assert.IsInstanceOf <FontClient.GlyphBufferData>(testingTarget, "Should be an instance of GlyphBufferData type.");

            testingTarget.Height = 50;
            Assert.AreEqual(50, testingTarget.Height, "Should be equal!");

            testingTarget.Dispose();
            tlog.Debug(tag, $"FontClientGlyphBufferDataHeight END (OK)");
        }
Exemple #3
0
        public void FontClientGlyphBufferDataFormat()
        {
            tlog.Debug(tag, $"FontClientGlyphBufferDataFormat START");

            var testingTarget = new FontClient.GlyphBufferData();

            Assert.IsNotNull(testingTarget, "Return a null object of GlyphBufferData");
            Assert.IsInstanceOf <FontClient.GlyphBufferData>(testingTarget, "Should be an instance of GlyphBufferData type.");

            testingTarget.Format = PixelFormat.BGR8888;
            Assert.AreEqual(PixelFormat.BGR8888, testingTarget.Format, "Should be equal!");

            testingTarget.Dispose();
            tlog.Debug(tag, $"FontClientGlyphBufferDataFormat END (OK)");
        }
Exemple #4
0
        public void FontClientGlyphBufferDataConstructor()
        {
            tlog.Debug(tag, $"FontClientGlyphBufferDataConstructor START");

            using (FontClient.GlyphBufferData data = new FontClient.GlyphBufferData())
            {
                var testingTarget = new FontClient.GlyphBufferData(FontClient.GlyphBufferData.getCPtr(data).Handle, true);
                Assert.IsNotNull(testingTarget, "Return a null object of GlyphBufferData");
                Assert.IsInstanceOf <FontClient.GlyphBufferData>(testingTarget, "Should be an instance of GlyphBufferData type.");

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"FontClientGlyphBufferDataConstructor END (OK)");
        }