cyotek / imagelistview

Automatically exported from code.google.com/p/imagelistview
5 stars 0 forks source link

Load image from Database. #77

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Load Image from database (size image is 800x600)
But imagelistview display as a thumnail image

I'm using  imagelistview.Item.Add(idImage,imgName,img) method to add image from 
database to imagelistview.

And set view of imagelistview is Gallery.

Original issue reported on code.google.com by commando...@gmail.com on 5 Jul 2010 at 8:52

Attachments:

GoogleCodeExporter commented 9 years ago
Imagelistview only saves small thumbnails of images. Large images are extracted 
every time they  are needed (ie. in gallery mode) To supply large images to the 
control you need to handle the RetrieveVirtualItemImage event.

Original comment by oozcitak on 5 Jul 2010 at 10:42

GoogleCodeExporter commented 9 years ago
Thanks you for replying.

Could you make it clearly .. i'm try but nothing with RetrieveVirtualItemImage.
(sorry .. i'm new)

Thanks OOzcitak.

Original comment by commando...@gmail.com on 5 Jul 2010 at 3:09

GoogleCodeExporter commented 9 years ago
With imagelistview 5.0 ! In gallery mode, large image will show automatic. But 
in v6.8 large image equal thumnail image.

Thanks.

Original comment by commando...@gmail.com on 8 Jul 2010 at 6:46

GoogleCodeExporter commented 9 years ago
Hi,

I found and fixed a bug while writing some sample code for you, so please first 
download the latest version (6.9). Afterwards, you will need to handle the 
RetrieveVirtualItemThumbnail event of the control (*not* 
RetrieveVirtualItemImage as I wrote above, sorry for that). In the event, 
you'll need to return a large image for the given item. e.g.:

  object idImage = e.Key;
  Image img = MyGetItemImageFromDatabase(idImage);
  e.ThumbnailImage = img;

Original comment by oozcitak on 8 Jul 2010 at 8:11

GoogleCodeExporter commented 9 years ago
Thanks OOzcitak !

i get new problem .. and i need your help.

i have 2 form.

One is: MainForm load image from database to imagelistview, (as thumnail view). 
and using itemclick to open Form 2 with gallery view.

Some time when i close Form 2 i get error message:

"Cross-thread operation not valid: Control 'imgDetail' accessed from a thread 
other than the thread it was created on."  (imgDetail is name of imagelistview 
on Form 2).

        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing); >>> error throw here
        }

Thanks oozcitak a lot . And sorry, my English too bad.

Original comment by commando...@gmail.com on 16 Jul 2010 at 3:48

GoogleCodeExporter commented 9 years ago
Can you send me some sample code to reproduce the issue?

Original comment by oozcitak on 19 Jul 2010 at 12:15

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Got your email. Thank you.

Original comment by oozcitak on 24 Jul 2010 at 10:24

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r305.

Original comment by oozcitak on 3 Aug 2010 at 11:14