473,593 Members | 2,885 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Do you know how to open TGA fies to display in PictureBox?

I have browsed the Net and found some library called DevIL which was ported
to C# by some fellow but apparantly while itloads some tga files many times
it fails, not sure why- no errors thrown just no image displayed in my
PictureBox. And this is using the reference app that they made as well.

Do you know any other library out there (free) that does this?
Oct 21 '06 #1
1 4243
Investigating this more, it does not seem to be a problem with the library
itself. I think so because I can use the library's load function to load the
file from disk into a Bitmap object and then I can use the library's save
function to save it to a new location, and it works. I can open the saved
file through a commercial image viewer just fine.
So it seems to be a probem with PictureBox? Are there some
setting/configuration to PictureBox that I may try to use to get this image
to display ? Are there other .NET controls to display pictures?
Oct 21 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1738
by: pcPirate | last post by:
Hi, I have a control PictureBox and I need to display a picture from Sql Database field, given data type Image. i) How should I diplay the picture in the PictureBox from the database? ii) How should I save the picture in PictureBox into the database? Pls advise and thanks in advance. pcPirate
2
20550
by: Bradley1234 | last post by:
Seems simple but Im missing something. In a C# form Ive got a picturebox and a button I have the File Open dialog linked to the button, but Im drawing a blank on how to take the stream and push the thing onto the picturebox. Here is the code, tia OpenFileDialog fileChooser = new OpenFileDialog();
0
1108
by: Johann Blake | last post by:
I am creating PictureBox controls at runtime in code and not at design time. These controls do get created and appear. These controls have a form as their container. Not all of the controls I create are shown at the same. The logic of my code is to sometimes show certain controls while hiding others and then later on reversing this. For some very strange reason, at some point when I want to display a control that was previously...
2
1625
by: barbara_dave | last post by:
Hi, all, I have a form which has a picturebox control on the top and several buttons on the bottom. I want to change the form size smaller at run time and let all buttons display overlap the image of the picturebox. But when I was making the form smaller, the buttons were covered by the image. How to show the buttons overlap the picturebox? Thanks!
2
6130
by: Mattbooty | last post by:
Hello, Not sure if anyone else has seen this bug, but I have a form where the entire form is covered with a picturebox. The picturebox has a mouseup event. I also have an open file dialog for loading images into the picturebox. If you double click the file you want to open in the open file dialog, it somehow interperets one of the clicks as a mouseup on the picturebox and fires the mouseup event for the picturebox. How can I get...
2
2097
by: Liu Feng | last post by:
How to display a 32bits icon in pictureBox or button? It can be displayed correct in toolbar, but not work in pictureBox and button. Who can help me? -- Thanks, LiuFeng
1
2190
by: Jeff Williams | last post by:
I have a picture (jpg) displaying in a picture box but I find that the file handle is still open to the image on disk. I think I need the following to happen 1. Load image from file on disk 2. Copy the loaded image to another object. 3. Close the file on disk 4. Display the image in the picture box as a thumbnail. 5. Allow user to rotate image if necessary by reloading the file
0
1213
by: swagatikasahoo | last post by:
how to display all lines if i will scroll the picturebox. hi, ok i m sending the code. ****************************************************** Private Sub PictureBox1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles PictureBox1.Paint eGraphics = e.Graphics TryToCreateRec(eGraphics) PictureBox1.Refresh() End Sub Public Sub TryToCreateRec(ByVal eGraphics As Graphics) Dim blackPen As New Pen(Color.White,...
0
1398
by: =?Utf-8?B?U2hhcm9u?= | last post by:
Using VS2005 with .NET Framework 2.0 I'm using the the System.Windows.Forms.PictureBox to display a bitmap when the PictureBox.SizeMode is PictureBoxSizeMode.StretchImage The PictureBox can be resized by the user. When the PictureBox size is less then the bitmap size then the bitmap is resized by the PictureBox to a smaller size to fit the PictureBox size. My question is: What method is used to downsize the bitmap?
0
7874
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8241
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
7997
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8227
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5738
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5402
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3893
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2383
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1469
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.