PC Review


Reply
Thread Tools Rate Thread

Baclk background for images saved from ListView

 
 
Alain Dekker
Guest
Posts: n/a
 
      5th May 2011
I'm using this code to extract the images in the LargeImageList member of a
ListView. This images appears fine int he ListView while the application
runs, but when extracted they are coming out with a black background. I'm
not sure what I'm doing wrong, maybe some extra layer I need to extract/add.
I've tried all formats, (GIF,JPEG,PNG) and they all have the same problem.

int nCount = lstlanguages.Items.Count;
string strFilename;
for (int nImage = 0; nImage < nCount; nImage++)
{
strFilename = ("\\FFSDISK\\BMP" + (nImage+1).ToString() + ".bmp");
lstlanguages.LargeImageList.Images[nImage].Save(strFilename,
System.Drawing.Imaging.ImageFormat.Bmp);
}

Thanks,
Alain


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Images are saved into another folder when the document is saved a. =?Utf-8?B?TUNob3c=?= Microsoft Word Document Management 0 2nd Nov 2007 04:39 PM
IE6 not showing background images,just blank background me Windows XP Internet Explorer 0 8th Sep 2004 07:54 PM
How to baclk-up accounts ? Orlando Gondar Windows XP General 1 26th Aug 2004 03:45 PM
IE6 not showing background images,just blank background me Windows XP Internet Explorer 0 25th Aug 2004 06:50 PM
RE: ListView - images disappear after coming back from another form with a ListView Armin Sadeghi [MSFT] Microsoft Dot NET Compact Framework 0 5th Sep 2003 11:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:32 AM.