Questions tagged [freeimage]

"FreeImage is an Open Source library project for developers who would like to support popular graphics image formats like PNG, BMP, JPEG, TIFF and others as needed by today's multimedia applications."

FreeImage is an Open Source library project for developers who would like to support popular graphics image formats like PNG, BMP, JPEG, TIFF and others as needed by today's multimedia applications. FreeImage is easy to use, fast, threading-safe, compatible with all 32-bit or 64-bit versions of Windows, and cross-platform (works both with Linux and Mac OS X).

FreeImage is usable in many languages including C, C++, VB, C#, Delphi, Java and also in common scripting languages such as Perl, Python, PHP, TCL or Ruby.

175 questions
1
vote
1 answer

C: Best way to make a buffer copy of an Image Map

I have a struct that basically has these contents: typedef struct { unsigned int width, height; float *r, *g, *b; } image; Using the FreeImage.h library I am able to open a certain image and associate the pixels with its RGB colours. So the…
fdev
  • 87
  • 1
  • 7
1
vote
1 answer

How to draw an image inside a circle?

I have a MFC application and i need to draw an image inside a circle (or crop the image in a circle). I use FreeImage to load the image, so an answer using FreeImage or a MFC function will work. This is how i load the image: void DrawImage(CDC *pDC,…
Penachia
  • 389
  • 4
  • 18
1
vote
0 answers

Which is the FASTEST image loading library?

I am currently using stb_image to load textures of 3D models. For the "sponza" model, there are 63 textures to load (including diffuse color textures, normal maps, height maps, etc.) and this takes several seconds. I want these textures to load…
j00hi
  • 5,420
  • 3
  • 45
  • 82
1
vote
2 answers

Transparency in FreeImage

I am successfully converting a 24-bit PNG image which has a transparent background to 4-bit PNG image using FreeImage C# wrapper. However, the 4-bit image's background becomes black instead of being transparent. Here is the code. Any ideas? FIBITMAP…
Mert Sevinc
  • 929
  • 1
  • 8
  • 25
1
vote
1 answer

FreeImage on Linux returns -1 format

I am happy user of Ubuntu 16.04 LTS. Not so long ago I've tried both to build FreeImage from sourceforge page of FreeImage. Later I uninstalled it completely and installed the same version from apt-get by sudo apt-get install…
Nikys
  • 31
  • 5
1
vote
2 answers

OpenGL glReadPixels to FreeImage bitmap

I'm trying to save the output of my rendering to file. I'm already using FreeImage as a dependency so I'd like to continue using it. I'm using glReadPixels to read the RGB values from the buffer. These values were entered into the buffer as…
marcman
  • 3,233
  • 4
  • 36
  • 71
1
vote
0 answers

FreeImage_GetFileType not working in Android NDK

I am currently trying to create a multiplatform application (targets are Windows and Android via ndk). So the problem is in textures (as in topic of this post). It works great on windows, but in Android FreeImage_GetFileType returns FIF_UNKNOWN,…
user7428910
  • 61
  • 1
  • 7
1
vote
1 answer

Reading gif color image with FreeImage library and convert it to OpenCV Mat

Colors got lost when I convert a gif color image in Freeimage FIBITMAP* fromat to OpenCV Mat. I use opencv 3.1.0. I read A1.gif with this code: FREE_IMAGE_FORMAT format = FreeImage_GetFileType(imgPath.c_str(), 0); FIBITMAP *image =…
Iman
  • 424
  • 5
  • 18
1
vote
0 answers

texture images saved as black - Android

I'm using this code to save a texture to bmp file. I ran this code on both windows and android platforms. On windows it's work good as should be, but on android I get all the images black, which is weird bc in windows I got the real images (not…
arii
  • 143
  • 2
  • 12
1
vote
2 answers

freeimage 3.17 library build failing on Mac OS X: fails with C++11 narrowing error... any ideas?

With not having any understanding of C++ (I'm teaching myself Swift), I'm struggling a bit to get around this one - but ideally would love to be able to expose some of the functionality in the FreeImage library in my project. It appears that only…
pastewort
  • 25
  • 3
1
vote
0 answers

FreeImage - Write zTXt tag to PNG

This is really causing me a headache. For some reason or another, I can add a specific tag to a PNG file, but it's not adding the way I'd like and I don't know how to get it to write the way I want Given the code; Dim FImage As FIBITMAP =…
Sukasa
  • 1,700
  • 4
  • 22
  • 40
1
vote
1 answer

c++ - FreeImage+OpenCV - 16bit image get distorted

I'm trying to load an image because I have to apply an algorithm on it. If I load an 8 bit-per-channel image there are no problems, but if I load a 16bpc image then it get "ruined". Unfortunatly, since I don't have enough reputation I can't uplad…
pedro
  • 417
  • 2
  • 7
  • 25
1
vote
1 answer

How do I link to FreeImage?

I am using Kubuntu 14.04, and installed the FreeImage library with sudo apt-get install libfreeimage-dev As far as I can tell, it is correctly installed, with FreeImage.h in /usr/include and libfreeimage.a in /usr/lib. However, this trivial C…
Mark Raymond
  • 906
  • 8
  • 22
1
vote
0 answers

Linking and Compiling C library Undefined symbols. Predeclaration in another file to implementation

Okay so I am experiencing some issues with compiling and linking a C library (LibJXR from Microsoft) with a predeclaration in one file and the implementation in another. (Building FreeImage 3.16 for iOS) The compiling part is successful, however the…
Danoli3
  • 3,203
  • 3
  • 24
  • 35
1
vote
2 answers

Problems linking FreeImage 3.16.0 using make and Clang on Mac OS X 10.8

I've modified the Makefile.osx file that comes with FreeImage 3.16.0 to compile using Clang and to use the latest 10.8 Mac OS X SDK, which has gotten rid of most of the problems, but I'm completely stuck on a small set of linker errors that I can't…
Justin G
  • 776
  • 1
  • 10
  • 25