Display ".PIC" picture in PictureBox

  • Thread starter Thread starter Debu Das
  • Start date Start date
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
 
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
 
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
 
Back
Top