PC Review


Reply
Thread Tools Rate Thread

Display ".PIC" picture in PictureBox

 
 
Debu Das
Guest
Posts: n/a
 
      17th Dec 2004
Hi,

In my application i want to display picture in PictureBox.
I do not have problem in displaying ".jpg" files but i get exception
while displaying ".pic" files.
Below is the code that i am using in the application
Dim PicImage As Bitmap
PicImage = New Bitmap("1000.PIC")
PictureBox1.Image = PicImage

I am getting error Message "Invalid parameter used." using the above
code.

Is there any other way of displaying the ".pic" file

Any suggestion will be highly appreciated.

Thanks,

Debu
 
Reply With Quote
 
 
 
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      17th Dec 2004
You get an exception because the .pic format is not supported. The supported
formats are .bmp, .gif, .png, .jpg. If your .pic files are actually JPEG,
then you will may need to rename them. If these are actually MAC (?) files,
you will need to convert them on the desktop

--
Alex Feinman
---
Visit http://www.opennetcf.org
"Debu Das" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> In my application i want to display picture in PictureBox.
> I do not have problem in displaying ".jpg" files but i get exception
> while displaying ".pic" files.
> Below is the code that i am using in the application
> Dim PicImage As Bitmap
> PicImage = New Bitmap("1000.PIC")
> PictureBox1.Image = PicImage
>
> I am getting error Message "Invalid parameter used." using the above
> code.
>
> Is there any other way of displaying the ".pic" file
>
> Any suggestion will be highly appreciated.
>
> Thanks,
>
> Debu



 
Reply With Quote
 
debu@rheal.com
Guest
Posts: n/a
 
      20th Dec 2004
Hi Alex,

Thanks for your immediate response.

Is it possible to convert ".PIC" to ".JPG" through some .net
class? If so please mention the class.
Or do I need to have some third party product?

Regards,

Debu

 
Reply With Quote
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      20th Dec 2004
I am not sure what exactly your pic files are. Is it something from MAC?

--
Alex Feinman
---
Visit http://www.opennetcf.org
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Alex,
>
> Thanks for your immediate response.
>
> Is it possible to convert ".PIC" to ".JPG" through some .net
> class? If so please mention the class.
> Or do I need to have some third party product?
>
> Regards,
>
> Debu
>



 
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
Using PictureBox to draw "Cake" display graph ? zzzzzzzz87978zzz@gmail.com Microsoft C# .NET 1 25th Feb 2009 06:45 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Microsoft Excel Misc 2 8th Aug 2008 01:54 AM
Not remembering "My Display Picture or Personal Message" =?Utf-8?B?Sm9oYW5u?= Windows XP Messenger 0 8th Jul 2006 07:22 AM
Outlook 2003 cannot display embed images. Not a problem with "Automatic Picture Download Settings" PowerCat Microsoft Outlook Discussion 4 22nd Jul 2005 08:37 AM
Insert Picture from File -- How to set the default display format to "Details" instead of "Thumbnails" =?Utf-8?B?eGlhb2Fud2FuZw==?= Microsoft Word Document Management 7 14th Apr 2004 06:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:45 PM.