GithubHelp home page GithubHelp logo

xnwp / xtga Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 4.0 582 KB

A C++ (C-Interface Available) Library for opening, creating, and manipulating the TGA format.

License: MIT License

C 4.72% C++ 91.98% CMake 2.77% Shell 0.53%
tga tga-images tga-format targa reader writer library sdk api abi

xtga's Introduction

xTGA Targa Library

xTGA is a C++ (C-Interface Available) Library for opening, creating, and manipulating TrueVision TGA formatted files.

what can it do?

  • Extract RGBA images from a TGA file.
  • Access embedded information such as file author, file comments, creation dates, and more!
  • Create TGA images from thin air! (note: actually requires a source image)
  • Edit extension information such as author, comments, job times, etc.
  • Embed arbitrary information into a TGA file via developer entries.
  • Read thumbnail images as well as generate them with bicubic interpolation.
  • Basically everything you'd ever want to do with a TGA image (hopefully).

what can't it do?

  • give you up
  • let you down
  • turn around
  • hurt you (todo: confirm this)

looks great! how do I get started?

I'm glad you asked disembodied voice in my head. You can start by checking out one of our fabulous guides below (we worked really hard on them). If after reading all relevant information you are still confused about getting the library working for you, don't hesitate to open an issue on our GitHub or contact me directly via Twitter.

some useful links

xtga's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

xtga's Issues

Exception levée SampleTga.exe 

it's about the c sample opening a tga.The tga file is loaded and there is an exception at line:
xtga_ManagedArray* Image = xtga_TGAFile_GetImageRGBA(MyFile, &AlphaType, &err);
Visual studio 2019 say bug is in dll: codecs.cpp line 2261:

if (!obuffer)
{
obuffer = (uchar*)malloc((addressable)w * h * depth);
for (addressable i = 0; i < (addressable)w * h * depth; ++i)
{
((uchar*)obuffer)[i] = ((uchar*)buffer)[i]; //<<<<<<<<<< here
}
}
I join the sample

sample.zip

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.