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
 How to mark the width and height of picture?

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 - Aug 11 2016 : 02:01:44



4   L A T E S T    R E P L I E S    (Newest First)
lmr2007 Posted - Aug 12 2016 : 11:24:30
THANK
w2m Posted - Aug 12 2016 : 10:41:30
procedure TForm1.AddRulers1Click(Sender: TObject);
var
  iHObj: Integer;
  iLeft: integer;
  iTop: integer;
  iWidth: Integer;
  iHeight: Integer;
begin
  iLeft := 0;
  iTop := 0;
  iWidth := ImageEnVect1.IEBitmap.Width;
  iHeight := ImageEnVect1.IEBitmap.Height;
  ImageEnVect1.ObjBitmapHandleTransparencyOnSel := true;
  ImageEnVect1.FloatDigits := 0;
  ImageEnVect1.ZoomObjectsWidth := True;
  ImageEnVect1.ObjBoxInnerSelectable := True;
  ImageEnVect1.MUnit := ieuPIXELS;
  iHObj := ImageEnVect1.AddNewObject;
  ImageEnVect1.ObjKind[iHObj] := iekRULER;
  ImageEnVect1.ObjName[iHObj] := 'Ruler';
  ImageEnVect1.ObjLeft[iHObj] := iLeft;
  ImageEnVect1.ObjTop[iHObj] := iTop;
  ImageEnVect1.ObjWidth[iHObj] := iWidth;
  ImageEnVect1.ObjPenColor[iHObj] := clBlack;
  ImageEnVect1.ObjRulerType[iHObj] := iertQUOTECENTER;
  ImageEnVect1.ObjPenWidth[iHObj] := 1;
  ImageEnVect1.ObjRulerUnit[iHObj] := ieuPIXELS;
  ImageEnVect1.SetObjRect(iHObj, Rect(0, 0, iWidth, 0));
  ImageEnVect1.Update;
  iHObj := ImageEnVect1.AddNewObject;
  ImageEnVect1.ObjKind[iHObj] := iekRULER;
  ImageEnVect1.ObjName[iHObj] := 'Ruler';
  ImageEnVect1.ObjLeft[iHObj] := iLeft;
  ImageEnVect1.ObjTop[iHObj] := iTop;
  ImageEnVect1.ObjHeight[iHObj] := iHeight;
  ImageEnVect1.ObjPenColor[iHObj] := clBlack;
  ImageEnVect1.ObjRulerType[iHObj] := iertQUOTECENTER;
  ImageEnVect1.ObjPenWidth[iHObj] := 1;
  ImageEnVect1.ObjRulerUnit[iHObj] := ieuPIXELS;
  ImageEnVect1.SetObjRect(iHObj, Rect(iWidth, 0, iWidth, iHeight));
  ImageEnVect1.Update;
end;

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
lmr2007 Posted - Aug 12 2016 : 02:00:52
put ruler objects on the image showing its size#12290;
xequte Posted - Aug 11 2016 : 19:47:40
Hi

Do you mean show onscreen the widht and height of the image, or put ruler objects on the image showing its size?


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com