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
 How to mark the width and height of picture?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

lmr2007

5 Posts

Posted - Aug 11 2016 :  02:01:44  Show Profile  Reply



xequte

38610 Posts

Posted - Aug 11 2016 :  19:47:40  Show Profile  Reply
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
Go to Top of Page

lmr2007

5 Posts

Posted - Aug 12 2016 :  02:00:52  Show Profile  Reply
put ruler objects on the image showing its size#12290;
Go to Top of Page

w2m

USA
1990 Posts

Posted - Aug 12 2016 :  10:41:30  Show Profile  Reply
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
Go to Top of Page

lmr2007

5 Posts

Posted - Aug 12 2016 :  11:24:30  Show Profile  Reply
THANK
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: