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
 The size of the ruler cannot be fully displayed after sampling

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
lmr2007 Posted - Apr 21 2025 : 05:03:59
The size of the ruler cannot be fully displayed after sampling

procedure TImageFenceForm.BitBtn3Click(Sender: TObject);
var
  sX, sY, sW, sH,vRightOffset: integer;
  px,py,I,CountI,NextI,vObjPenWidth:Integer;
  FilePath,CountS,NextH: string;
  vRect: TRect;
  tmpFont: TFont;
begin
  px:=20;
  py:=20;
  NextH:='0';
  vRightOffset:=100;//#27178;#21521;#21491;#20559;#31227;
  vObjPenWidth:=3;

  ImageFence.LayersFixSizes( LYR_ALL_LAYERS   ); //LYR_ALL_LAYERS  LYR_SELECTED_LAYERS
  ImageFence.ObjTextAutoSize[IEV_NEXT_INSERTED_OBJECT]:=true;

  //#24038;#36793;#26694;
  ImageFence.ObjLayer[IEV_NEXT_INSERTED_OBJECT];
  with ImageFence do
  begin
    ObjKind [IEV_NEXT_INSERTED_OBJECT] := iekBOX;
    ObjLeft [IEV_NEXT_INSERTED_OBJECT] := px+vRightOffset;
    ObjTop [IEV_NEXT_INSERTED_OBJECT] := py;
    ObjWidth [IEV_NEXT_INSERTED_OBJECT] := 10;
    ObjHeight[IEV_NEXT_INSERTED_OBJECT] := vMheight;
    ObjPenWidth[IEV_NEXT_INSERTED_OBJECT]:=vObjPenWidth;
    ObjRulerUnit[IEV_NEXT_INSERTED_OBJECT]:=ieuPixels;
    ObjPenColor[ IEV_NEXT_INSERTED_OBJECT ] := clBlack;
    AddNewObject;
  end;

  //#31446;#26631;#23610;
  tmpFont := TFont.Create;
  tmpFont.Color := clBlue;
  tmpFont.Size := 12;
  tmpFont.Name := 'Arial';
  tmpFont.Height:=30;
  ImageFence.ObjLayer[IEV_NEXT_INSERTED_OBJECT];
  with ImageFence do
  begin
   ObjKind[IEV_NEXT_INSERTED_OBJECT] := iekRULER;
   SetObjRect(IEV_NEXT_INSERTED_OBJECT, Rect(
    px-15,py,
    px-15,vMheight+py));
   ObjPenWidth[IEV_NEXT_INSERTED_OBJECT]:=vObjPenWidth;
   ObjPenColor[IEV_NEXT_INSERTED_OBJECT] := clBlack;
   ObjRulerUnit[IEV_NEXT_INSERTED_OBJECT]:=ieuPixels;
   SetObjFont(IEV_NEXT_INSERTED_OBJECT, tmpFont);
   AddNewObject;
  end;

ImageFence.Update();
ImageFence.Fit();
tmpFont.Free;
end;



procedure TImageFenceForm.BitBtn4Click(Sender: TObject);
var
filename,autoid:string;
begin
  filename:= 'H:\01.jpeg';
  //#37325;#26032;#37319;#26679;
    ImageFence.Proc.SaveUndo;
    ImageFence.CopyObjectsToBack(true);
    ImageFence.LegacyBitmap := false;
    ImageFence.IEBitmap.PixelFormat := ie32f;
    ImageFence.IO.Params.BitsPerSample := 32;
    ImageFence.IO.Params.SamplesPerPixel := 1;
    ImageFence.IO.Params.TIFF_PhotometInterpret := ioTIFF_WHITEISZERO;
    ImageFence.IO.Params.TIFF_Compression := ioTIFF_UNCOMPRESSED;
    ImageFence.IO.Params.JPEG_Quality:=100;
    ImageFence.LayersFixSizes( LYR_ALL_LAYERS  ); //  LYR_SELECTED_LAYERS
    ImageFence.ObjTextAutoSize[IEV_NEXT_INSERTED_OBJECT]:=true;
    ImageFence.Proc.Resample( 0.4,rfLanczos3  );
    ImageFence.IO.SaveToFile(filename, ioJPEG);
    ImageFence.Proc.Undo;
end;


Thank you
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Apr 23 2025 : 21:12:10
OK, please email us about updating to a newer version.

Nigel
Xequte Software
www.imageen.com
lmr2007 Posted - Apr 23 2025 : 20:49:20
v10.2
xequte Posted - Apr 21 2025 : 22:36:31
Hi

Are you using v14.0.1? If not, please email us for the latest version.

Nigel
Xequte Software
www.imageen.com