Aurigma Forums
»
Graphics Mill
»
Discussions – Graphics Mill
»
Adding thumbnails from Image and Bitmap objects
Rank: Member
Groups: Guest
Joined: 4/10/2007(UTC) Posts: 1
|
All of your code examples that add images to the ThumbnailListView control have the image data being read from files. But my app is loading thumbnail images from a database and not from disk files. How do you use the ThumbnailListView.Items.Add() method to load image data that already is stored in a System.Drawing.Image object, an Aurigma.GraphicsMill.Bitmap object, or a byte array? Thanks in advance.
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 8/3/2003(UTC) Posts: 1,070
Thanks: 1 times Was thanked: 12 time(s) in 12 post(s)
|
|
|
|
|
|
Rank: Member
Groups: Guest
Joined: 4/17/2007(UTC) Posts: 1
|
Hello, We have added the thumbnail items as specified in the "Creating Custom List Items” article. The thumbnail control works fine when you run the application in debug mode, but when you run the application in release mode it is not working properly. Please find the attached sample application. Any help will be appreciated. Thanks, Sudhir
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 1/31/2005(UTC) Posts: 458
Was thanked: 5 time(s) in 5 post(s)
|
Hello Sudhir, I've looked through your sample. It works fine, except for drag'n'drop because of there is no Clone() method which should be implemented for correct work of the drag'n'drop functionality. Could you describe your problem in more detail or send screenshots? By the way, after brief code review I've found some vulnerable points with synchronization. You should synchronize access to the shared resources - such as image lists. This may explain why your application works in debug, but fails in release. Also in your implementation every BitmapListItem stores full-sized bitmap - this may cause out of memory error. Which version of Graphics Mill for .NET do you use? |
|
|
|
|
Aurigma Forums
»
Graphics Mill
»
Discussions – Graphics Mill
»
Adding thumbnails from Image and Bitmap objects
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.