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
 Layouts

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
John Posted - Mar 12 2012 : 22:44:41
Hello
Delphi XE2, ImageEn 4.1, Windows 7 64 bit

I need to be able to create a page layout (in landscape orientation):
1) that contains multiple JPG images (in three rows),
2) where each image is labeled,
3) where different rows have different row heights
4) where specific images are loaded into specific grid cells (rows 1 and 3) via code and
5) where selected grid cells (row 2) contain rich text rather than JPG images.

Question 1:
If I use a ImageEnMView component I have been unable to:
- define row height differently for different rows
- assign rich text to a specific grid.

Is there a mechanims (that I have missed) to solve either of the above issues?


Question 2:
If I use a ImageEnVect component I can use annotations to place the text and also use the following code to manually place the various images. The problem here, however, is that the images are distorted to fit the size of the bitmap.

ImageEnVect1.SetObjBitMapFromFile(IEV_Next_Inserted_Object, tempPtPhotoPath + kbmMemTablePhotos.FieldByName('FileName').AsString);
ImageEnVect1.ObjKind[IEV_Next_Inserted_Object] := iekBitmap;
ImageEnVect1.ObjLeft[IEV_Next_Inserted_Object] := 20;
ImageEnVect1.ObjTop[IEV_Next_Inserted_Object] := 20;
ImageEnVect1.ObjWidth[IEV_Next_Inserted_Object] := 350;
ImageEnVect1.ObjHeight[IEV_Next_Inserted_Object] := 350;
ImageEnVect1.AddNewObject;

Is there a mechanism to place a iekbitmap of a predefined size but to have the image that it contains retain its normal width and height perspective, i.e. not have the image distorted to fill the entire bitmap if the bitmap height and width do not match the JPG height and width exactly?

TIA

John

1   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Mar 13 2012 : 00:53:10
Hello,

quote:
Question 1:
If I use a ImageEnMView component I have been unable to:
- define row height differently for different rows
- assign rich text to a specific grid.


TImageEnMView is a grid (or matrix) of images. Each thumbnail (not the contained image) must have the same size. You cannot create a row (or a column) with different size.
Also rich text is not supported.
I think you should use TImageEnVect for this purpose.

quote:
Is there a mechanism to place a iekbitmap of a predefined size but to have the image that it contains retain its normal width and height perspective, i.e. not have the image distorted to fill the entire bitmap if the bitmap height and width do not match the JPG height and width exactly?


You could set:

ImageEnVect1.ObjWidth[IEV_Next_Inserted_Object] := ImageEnVect1.ObjBitmap[IEV_Next_Inserted_Object].Width;
ImageEnVect1.ObjHeight[IEV_Next_Inserted_Object] := ImageEnVect1.ObjBitmap[IEV_Next_Inserted_Object].Height;