Results 1 to 2 of 2

Thread: Can I change text color?

  1. #1
    Newbie
    Join Date
    Feb 2018
    Posts
    1

    Can I change text color?

    I draw texts by vgDrawGlyph() function. I have question. Can I change text color? It's just a black color. Thanks.

  2. #2

    You can change with vgSetColor

    Quote Originally Posted by ethardsdaisy92 View Post
    I draw texts by vgDrawGlyph() function. I have question. Can I change text color? It's just a black color. Thanks.
    You can change paint color with vgSetColor() function.
    Code :
    VGPaint vgPaintObject = vgCreatePaint();
    vgSetParameteri(vgPaintObject, VG_PAINT_TYPE, VG_PAINT_TYPE_COLOR);
    vgSetColor(vgPaintObject, 0xFF0000FF);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean