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 does the SetBlendMode function work?

Question

I can't find any examples on how to use the SetBlendMode function. Do you a Delphi example?

Answer

The SetBlendMode function only works when you're working with vector graphics that overlap. The overlapping area is when the SetBlendMode function comes into action. Here is some Delphi sample code:

QP.SetLineColor(1, 0, 0);
QP.SetLineWidth(10);
QP.DrawLine(300, 500, 300, 150);
QP.SetLineColor(0, 0, 1);
for X := 0 to 15 do
begin
  QP.SetBlendMode(X);
  QP.DrawLine(200, 475 - X * 20, 400, 475 - X * 20);
end;

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