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
 Copying Objects

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
jeff@lucion.com Posted - Apr 30 2015 : 14:45:06
I'm using the TImageEnMView with the TImageEnVect and I need to know how to copy all the objects that I create on the TImageEnVect to the TImageEnMView so that when I click through the pages of the TImaveEnMView all the objects will reappear in the TImageEnVect.

--Jeff
8   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - May 01 2015 : 19:05:40
Hi

Rather than filling the TImageEnMView with actual files with filenames, use it virtually. I.e. add a cell for each of your images and fill the "ImageID". Then whenever an image is required the OnImageIDRequestEx and OnImageIDRequest events will be called. In those fill the TBitmap or TIEBitmap with the image stored in memory for that cell.

More info on these events at:

http://www.imageen.com/help/TImageEnMView.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
jeff@lucion.com Posted - May 01 2015 : 13:16:43
The pointer is working great. I'm just trying to have the thumbnail image show the objects I added to the TImageEnVect. But I sense that may not be possible.
w2m Posted - May 01 2015 : 11:36:03
As I said before TImageEnMView has no way to know anything about objects. So you have to use the UserImagePointer to do that. I'd try to be of more help but I have never tried this before, but I suspect the UserImagePointer Index has to be set to the SelectedImage (index}. That way you can associate the objects in the UserImagePointer to a specific thumbnail.

Something like ImageEnMView1.ImageUserPointer[ImageEnMView1.SelectedImage]; This returns a pointer.
Perhaps Nigel has some more info he can provide. I can not.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
jeff@lucion.com Posted - May 01 2015 : 09:17:29
Ok. I've got the UserImagePointer working and storing my objects, but how can I get the TImageEnMView Thumbnail to visibility show the object I place on the TImageEnVect? TImageEnMview.Update seems to only show changes made to the underlying bitmap.

Thanks.
xequte Posted - Apr 30 2015 : 21:23:09
Hi

You can use ImageEnMView1.ImageUserPointer[] to associate a memory pointer with each frame:

http://www.imageen.com/help/TImageEnMView.ImageUserPointer.html

Or ImageEnMView1.ImageTag[] to associate an integer (e.g. as an index to an object in another list):

http://www.imageen.com/help/TImageEnMView.ImageTag.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
jeff@lucion.com Posted - Apr 30 2015 : 16:10:09
Is there somewhere on the TImageEnMView for each page that I can attach a custom object so that it gets associated with the page even if the page gets reordered.
xequte Posted - Apr 30 2015 : 16:06:26
Hi Jeff

Yes, you would need to save the TImageEnVect to a file or stream (as an IEV or ALL file) to maintain the content. For example, you could store a list of temp files (or a stream array in memory) and use the TImageEnMView to display the content of those temp files or stream content.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
w2m Posted - Apr 30 2015 : 14:54:51
I am afraid this is not possible with TImageEnMView. TImageEnMView can only display a bitmap of the image and its objects. It does not store the object type, colors and dimensions so it is not possible to recreate the objects from TImageEnMView.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development