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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 ImageEnView Bitmap Font Color

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
TiagoMelo Posted - Feb 12 2015 : 14:33:21
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;
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Feb 12 2015 : 18:24:09
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