Jump to content
Sign in to follow this  
xorpas

write text on image with specific position fmx

Recommended Posts

Dear friends:

 

How can write on image and save it the new in fmx android I can't found similar then txtout  in fmx  this code work but can't write text in specific position

 

var
  ARect: TRectF;
  s: string;
begin
  with Image1.Bitmap do
  begin
    Canvas.Font.Family := 'Arial';
    Canvas.Fill.Color := TAlphaColorRec.Black;
    ARect.Top := 200;
    ARect.Left := 100;
    ARect.Width := 105;
    ARect.Height := 50;
    s := 'hellow Fmx';
    Canvas.BeginScene;
//    canvas.textout(20,20,'hellow Fmx');
    Canvas.FillText(ARect, s, false, 1, [], TTextAlign.Leading,
      TTextAlign.Leading);
    Canvas.EndScene;
  end;

end;

 

 

Share this post


Link to post

What happens when you offset the Top and Left position ?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×