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
 TIETextLayer.Alignment = iejRight
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

brm121966

USA
66 Posts

Posted - Feb 03 2025 :  12:54:46  Show Profile  Reply
Hello,

In ImageEn version 13.7.0, there is an observed issue where right-aligned text experiences a redraw effect that causes the last character to disappear. This effect also manifests when saving the image to a file, resulting in the last character being omitted.

A video demonstrating this issue can be found here: https://www.dropbox.com/scl/fi/g006jum2e4vqq7jtvn7p9/Video_2025-02-03_125508.wmv?rlkey=g81irnhqg05zmdp84rbv6ambp&st=nk8nst4g&dl=0

Thank you.

Rudolf

xequte

38754 Posts

Posted - Feb 03 2025 :  16:27:58  Show Profile  Reply
Hi Rudolf

Can you give me the specific code that creates this text layer, or attach the saved IEN file?

Also, what is the Windows Scale setting for that monitor (right-click the desktop and choose "Display Settings")?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

brm121966

USA
66 Posts

Posted - Feb 04 2025 :  09:06:41  Show Profile  Reply
Hi Nigel

Setting display:

Layer_Text('Jazz',TIELayout,iejRight,0.35,260,50,40,715,1870,350);

procedure Layer_Text(s_pText:string; n_pLayout:TIELayout; n_pAlignment:TIEAlignment; n_pOpacity:Double; n_pSizeFont,n_pTemplate,n_pX1,n_pY1,n_pX2,n_pY2: integer);
begin
  with F_Edit_Cover.IEV_Load do begin
    LayersAdd( ielkText, n_pX1,n_pY1,n_pX2,n_pY2 );
    with TIETextLayer( CurrentLayer ) do begin
      Font.Name  := 'Impact';
      Font.Size  := n_pSizeFont;
      Font.Style := [fsBold];
      Font.Color := clWhite;
      Layout     := n_pLayout;
      Alignment  := n_pAlignment;

      with TextStyling do begin
        BorderWidth := 0;
        BorderColor := clBlack;
        FillColor2  := clWhite;
        FillGradient := gpgNone; //gpgVertical;
      end;
      WordWrap := True;
      AutoSize := false;
      Text := s_pText;
    end;
    with CurrentLayer do begin
      Opacity := n_pOpacity;
      Cropped := true;
    end;
    if (n_pTemplate in [50,60]) then Soft_Shadow(CurrentLayer,40,clBlack)
  end;
end;

procedure Soft_Shadow(o_pCL:TIELayer;n_pR:Integer;cl_Par3:Integer=clWhite);
begin
  with o_pCL.SoftShadow do begin
    Enabled := True;
    OffsetX := 0;
    OffsetY := 0;
    ShadowColor := TColor2TRGB( cl_Par3 );
    Radius  := n_pR;
  end;
  o_pCL.Update;
end;



Rudolf

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: