ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 ImageEnView Bitmap Font Color
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

TiagoMelo

Brazil
5 Posts

Posted - Feb 12 2015 :  14:33:21  Show Profile  Reply
hello , I am using the code below to add a watermark in a tif I'm looking for the disc, the watermark is added , however the color informed in font.color does not come as informed but black, what could be wrong ? follows the code below :

ImageEnView1.IO.LoadFromFileTIFF(arquivotif);
  try
    with (ImageEnView1) do
    begin
      LayersAdd;
      Proc.Fill(CreateRGB(255, 255, 255));
      Bitmap.Canvas.Font.Name   := 'Courier New';
      Bitmap.Canvas.Font.Color  := clRed;
      Bitmap.Canvas.Font.Size   := 60;
      Bitmap.Canvas.TextOut(150,900,'Não tem valor de certidão');
      CurrentLayer.Rotate := 45;
      Proc.SetTransparentColors(CreateRGB(255, 255, 255), CreateRGB(255,255, 255), 0);
      LayersMergeAll;
      Update;

      IO.SaveToFileBMP('c:\pdf\'+inttostr(Random(1000))+'.bmp');
    end;
  except
    raise;
  end;

xequte

38615 Posts

Posted - Feb 12 2015 :  18:24:09  Show Profile  Reply
Hi

Is this a monochrome TIFF file? You may need to promote it to 24bit:

http://www.imageen.com/help/TImageEnProc.ConvertTo24Bit.html


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: