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
 Layouts
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

John

USA
94 Posts

Posted - Mar 12 2012 :  22:44:41  Show Profile  Reply
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

fab

1310 Posts

Posted - Mar 13 2012 :  00:53:10  Show Profile  Reply
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;
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: