Do you own a Debenu Quick PDF Library 12/11/10/9/8/7? Upgrade to Debenu Quick PDF Library 13!

Foxit Quick PDF Library

Frequently Asked Question:

Return to FAQ Index

How do I set the font color?

Question

I can draw text ontop of an image, that works well, but how do I set the colour of the text....I want it to be red !

Answer

The SetTextColor function can be used to set the color of subsequently drawn text.

// Set text color to red.
QP.SetTextColor(255, 0, 0);
QP.DrawText(50, 50, "Red colored text");

© 2015 Debenu & Foxit. All rights reserved. AboutBuyContactBlogNewsletterSupportFAQProduct UpdatesForum