Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with PCX file.
#1
Hi.

I'm in real need of being able to display .PCX graphic files in my app. I am using Visual Studio 2013 .NET.

I've tried GDPicturedotnet but for some reason it is not showing up in the Toolbox and when I select 'Show all' it is greyed out. I've also tried IocompDotNet V4 SP3 but unable to find any help files or documents on how to use their commands.

Many, Many thanks for your help.
#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.
#3
Hi brandonio21

Sorry for the late reply, just saw this post while browsing. I managed to find gdpictures which supports .pcx files.

Thank you for your help.

Regards

Tony


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

Forum Jump:


Users browsing this thread: 1 Guest(s)