Results 1 to 2 of 2

Thread: Can I change text color?

  1. #1
    Newbie 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
    Junior Member Newbie
    Join Date
    Mar 2018
    Posts
    3

    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);

Similar Threads

  1. How to change text color
    By flashscan in forum OpenVG
    Replies: 3
    Last Post: 11-09-2009, 01:17 AM
  2. How can I change the color of my text?
    By Margrete in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 09-15-2003, 12:51 AM
  3. how to change color
    By jyoung77 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-18-2003, 04:06 AM
  4. Color change when PC change!!!
    By Boubou in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 12-15-2000, 02:00 PM
  5. Color Won't Change!!
    By in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 11-13-2000, 01:30 AM

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