Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with PCX file.
#2
Unfortunately, I have never dealt with .PCX graphics before. After doing some Googling, I was able to come across the following thread:

http://bytes.com/topic/c-sharp/answers/7...ing-bitmap

You probably don't want to read it, so in the thread they mention that the .NET framework does not support loading .PCX images by default (Which you've already discovered). The recommended library is dotnetfireball, which can be found here: http://dotnetfireball.codeplex.com/.

Here is a code snippet presented on the linked forum thread that uses dotnetfireball to load a *.pcx

[code2=vbnet]Dim imageToSet As Image = Nothing
Dim image As New Fireball.Drawing.FreeImage("C:\text.pcx")
imageToSet = image.GetBitmap()
PictureBox1.Image = imageToSet

' Note, this code was translated from C#.NET and may contain a few errors.[/code2]
My Blog | My Setup | My Videos | Have a wonderful day.


Messages In This Thread
Help with PCX file. - by Worf - 09-23-2014, 04:30 AM
Re: Help with PCX file. - by brandonio21_phpbb3_import2 - 09-23-2014, 01:14 PM
Re: Help with PCX file. - by Worf - 10-15-2014, 10:41 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Protecting a file Covert2String 4 15,038 05-10-2012, 12:01 AM
Last Post: Covert2String
  Reading XML file Covert2String 5 19,402 04-30-2012, 06:01 PM
Last Post: brandonio21
  Create a new file Covert2String 5 18,671 04-11-2012, 02:47 PM
Last Post: brandonio21
  Apply a diff file to another file Covert2String 8 27,198 04-09-2012, 03:21 PM
Last Post: Covert2String

Forum Jump:


Users browsing this thread: 1 Guest(s)