Welcome Guest! You need to login or register to make posts.



Go to last post Go to first unread
#1 Posted : Thursday, September 19, 2013 4:03:44 PM(UTC)

Rank: Advanced Member

Groups: Member
Joined: 9/10/2010(UTC)
Posts: 57

Thanks: 1 times

We want to load a thumbnail image from the memory instead of loading it directly from the file system such as

public ThumbnailListItem(string path);

eg: we have a lot of thumnail images embedded in resource file. we want load each image in a thumbnaillistitem. we notice that ThumbNailListItem has a method

public void SetThumbnail(Bitmap thumbnail);
public void Reload();

But we have not got it done successfully so far.

We want to do this in order to avoid opening many thumnail image files at the same time in hope to imrove performance a little bit.

#2 Posted : Thursday, September 19, 2013 6:45:08 PM(UTC)

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 876

Thanks: 2 times
Was thanked: 27 time(s) in 27 post(s)

In your case, it is better to create your own class inherited from the ListItem. This article explains how to create BitmapListItem class which works with Aurigma.GraphicsMill.Bitmap class instead of a file system:


Note, this article is written for GM5, so the syntax may differ a little bit, but it should give you an idea how to do it. If you have problems using this article with GM6, please let me know and we will provide you with our assistance.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.