Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load image from Database. #77

Closed
GoogleCodeExporter opened this issue Jul 28, 2015 · 9 comments
Closed

Load image from Database. #77

GoogleCodeExporter opened this issue Jul 28, 2015 · 9 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

Can you send me some sample code to reproduce the issue?

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

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

Got your email. Thank you.

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

@GoogleCodeExporter
Copy link
Author

This issue was closed by revision r305.

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

  • Changed state: Fixed

@oozcitak oozcitak added bug and removed Type-Defect labels Aug 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants