Display ".PIC" picture in PictureBox

D

Debu Das

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
 
A

Alex Feinman [MVP]

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
 
D

debu

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
 
A

Alex Feinman [MVP]

I am not sure what exactly your pic files are. Is it something from MAC?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top