Questions tagged [tga]

TrueVision TGA (or Targa) is a raster image file format with a long history of use in computer games, primarily because it was the first generally available format supporting 24-bit images.

See the following for more information:

74 questions
0
votes
1 answer

open tga files on asp.net

I dont know whether it is possible to view tga image files on asp.net? Tga image files are not known image files for webpages, I think. But there might be a control to view tag image files for asp.net? Thanks in advance.
olidev
  • 20,058
  • 51
  • 133
  • 197
0
votes
0 answers

Stitching an image together from square tiles in a WoW Wotlk addon

Context For educational purposes, I decided to create a WoW - Wotlk Classic AddOn that displays different maps when opening the world map. I am new to Lua and this is a learning project. My Addon directory structure with relevant files is as…
0
votes
1 answer

How to decode a .tga image in GStreamer?

Im trying to use GStreamer to handle read .tga files and covert them into video. The hard part is I dont know how to decode such file in GStreamer. MacOS Preview is able to read the .tga image directly. I can see some property: Size: 8,294,418…
0
votes
1 answer

C++ Modifying a TGA file and adding to a certain channel

this is what i am getting this is the image i am supposed to output I am attempting to add a number to the green channel of a loaded TGA file, but I am getting the wrong result, also when I add zero, it returns a modified image. Here is my code…
DJA15
  • 11
  • 1
0
votes
1 answer

How to extract Alpha Channel from a TGA or PNG image using Python?

I tried to export Alpha Channels of a All Images in The same Directory so I've used "os" to list all files in my case all images in the Directory and an old img lib which is not working or to be clear PyCharm says Cannot find reference 'split' in…
0
votes
2 answers

Declaring char variable breaks program

I am exploring .tga files. I have fully working code that looks like this: #include #include #include #include #include #include const int letterHeight = 34; const int spacer =…
0
votes
0 answers

Reading .tga image and copying it

I am trying to copy all data of one .tga file and create new file with exactly same data. Basicly it should copy image. (but i need to use this way because of teacher...) Program: #include #include #include #include…
0
votes
1 answer

How to correctly display a TGA image in a framebuffer?

I've been working on my own hobby OS. I would like to display icons. For its simplicity, I chose the tga format. But it is impossible to have a correct image: it is completely distorted. Here is my code: struct tga_header { uint8_t magic1; …
pwhx
  • 1
  • 2
0
votes
2 answers

2 bit per pixel tga's color to qRgb

I need to read tga's with pyqt and so far this seems to be working fine except where a tga has 2 bytes per pixel as opposed to 3 or 4. My code is taken from here http://pastebin.com/b5Vz61dZ. Specifically this section: def getPixel( file,…
Jay
  • 3,373
  • 6
  • 38
  • 55
0
votes
0 answers

TGA color mapped color convert to RGB or RGBA

I'm writing a tga parser in C++ for fun and now it can read files of imagetypes 2, 3, 10, but I'm stuck at type 1 where they have color map. I don't know how to convert color mapped colors to rgb or rgba. It seems like for an type 1 image…
Ron
  • 21
  • 2
0
votes
0 answers

Reading and writing TGA file on windows producing incorrect output

This basic example is working on macOS with the same TGA file but for some reason on windows with this particular file the output is as in the provided image. std::ifstream input_file("C:\\Users\\Michael\\Desktop\\earth.tga",…
user3255596
0
votes
1 answer

Reading Targa File. Missing Dark Colors?

Due to being new, I can only have two links and can not post my images. Sorry for the inconvenience of having to copy+paste addresses I am parsing a Targa (.tga) image file with code similar to that found at…
ssell
  • 6,429
  • 2
  • 34
  • 49
0
votes
1 answer

Any solution for TGA format loading in OpenCV4

There's no support TGA format for OpenCV currently. And I know there's a single header file library named stb_image that allow you to read/write TGA image. But the use case with OpenCV on the Internet are so few. (more often to see people use it…
0
votes
0 answers

NodeJS: How To Create An RGBA PNG or TGA in Javascript / PNGJS

I am populating 'imageData', applying it to a canvas, and then need to save it as a RGBA 16 or 32 bit image from Javascript. // Set all the alpha values to max. for (let i = 0; i < 64 * 64; i++){ imageData.data[(i * 4) + 3] =…
Selzier
  • 101
  • 1
  • 6
  • 19
0
votes
0 answers

C++: I want to write previously read .tga file

I read in the .tga header and the image data block and want to write it into a new file, but it won't and I'm out of ideas on what could be wrong. It's probably something simple, that I keep missing out on. Help would be very appreciated. struct…
Cpt. Crazy
  • 115
  • 1
  • 11