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
4
votes
2 answers

QOpenGLTexture (Qt) from raw data (freeimage)

I've been using the old Qt OpenGl methods but it was about time to switch to the newer ones. being bitmap a FIBITMAP* properly initialized glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, width, height,0, GL_BGRA,GL_UNSIGNED_BYTE,…
Frank Escobar
  • 368
  • 4
  • 20
4
votes
3 answers

Loading an image with FreeImage

I'm trying to follow an OpenGL tutorial but the tutorial uses SOIL (which doesn't work for me) and I use FreeImage. Could you tell me why my code doesnt work? Tutorial code: // Load texture GLuint tex; glGenTextures(1, &tex); int width,…
UndeadLeech
  • 133
  • 5
  • 17
4
votes
1 answer

Compile/Link FreeImage for iOS 5.0

I recently decided to try to run some of my graphics code on an iOS device, but I use FreeImage to load textures. As a result I need to build it for iOS 5.0. I'm currently getting link errors when I try to use the FreeImage library. The link errors…
Tocs
  • 752
  • 4
  • 17
3
votes
1 answer

Reduce Color Count in PNG-8 Palette using FreeImage Library (C#)

I was using the FreeImageNET libary to Quantize my Bitmap as using (FreeImageAPI.FreeImageBitmap fiBitmap = FreeImageAPI.FreeImageBitmap.FromHbitmap(bmp.GetHbitmap())) { if (fiBitmap.ColorDepth > 24) { …
nbaztec
  • 402
  • 4
  • 13
3
votes
1 answer

How to find out the compression of a TIFF image in FreeImage?

I use FreeImage to work with multipage TIFF files and at some point I have a TIFF page, in a FIBITMAP and I need to know its compression. Any idea how to do this?
Alexandru Pupsa
  • 1,798
  • 4
  • 21
  • 40
3
votes
2 answers

Linker errors with external NDK library that needs 'cpufeatures'

I'm trying to build and link freeimage to an android project. I'm close but I'm tripping up on some linker errors from that library. I'm using this repo: https://github.com/jamcar23/FreeImage-Android/blob/master/jni/freeimage/Android.mk Freeimage…
Luther
  • 1,786
  • 3
  • 21
  • 38
3
votes
1 answer

How to load and show a texture with Opengl

I've been trying to display an image using FreeImage in C++ and have been having a lot of trouble in doing this.The load function seems to load the image, but it doesn't seem to bind the image. Here is what i've got so far: GLuint Load(){ string…
user11046
  • 39
  • 2
3
votes
1 answer

Which is faster, GDI+ or libpng?

I have an HBITMAP and I would like to convert it to png format(in memory I have malloc'd)as fast as possible, so my question is should I go with GDI+ or libpng? I've tried using GDI+, but it doesn't seem as fast as I would like it to be. I've also…
user413396
  • 39
  • 2
3
votes
0 answers

Save FreeType bitmap to file

I've been playing around with FreeType to render text in OpenGL/DirectX. For debugging purposes, I'm wanting to render glyphs to a file (bmp, png, ect), so that I can pack them together as a font sprite sheet. To do this I'm using FreeImage. I'm…
Ramon Guerrero
  • 205
  • 1
  • 12
3
votes
0 answers

Freeimage plugin mirrors RGB arrays if saving in 16-bit

I am working with 2D floating-point numpy arrays and saving them as .png files with high precision (see this question for how I came to this point). To do this I use the freeimage plugin, as in that linked question. This creates a weird behaviour…
tsawallis
  • 1,035
  • 4
  • 13
  • 26
3
votes
2 answers

How to compile FreeImage on Mac OS X 10.8?

When trying to build FreeImage 3.1.5.4 on Mac OS X 10.8 with make make the following error g++-4.0: No such file or directoryoccurs. There is something wrong with the makefile regarding the compiler configuration. How to fix this?
Christoph
  • 1,965
  • 16
  • 35
3
votes
1 answer

Add FreeImage .NET to solution

I have followed the posts on this, but i am still not getting a few steps. I am new to C#, and that is probably the issue. I would love a little help (I have been banging on this all day). I can open the FreeImage.NET solution (Win7 64 bit machine…
DanG
  • 306
  • 7
  • 15
3
votes
0 answers

Create a HBITMAP which points to an existing memory buffer

I am using the FreeImage library to store and manipulate bitmap data. Part of my code requires me to take a screenshot of a window (in Windows), and store it as a FBITMAP* (FreeImage's bitmap data structure). The method I have worked out of doing…
JBentley
  • 6,099
  • 5
  • 37
  • 72
3
votes
2 answers

Building FreeImage.net on Visual Studio 2010 Express

It display 39 errors. All errors are like this: Error 1 Warning as Error: XML comment on 'FreeImageAPI.Plugins.PluginRepository.Plugin(string)' has a typeparamref tag for 'expression', but there is no type parameter by that name …
Irwan
  • 783
  • 1
  • 13
  • 28
2
votes
1 answer

Getting FreeImage to work with Visual Studio 2010

I was advised by some of you not to long ago to use FreeImage as a library for image processing in C++. I now have some trouble in getting the library to work (still relatively new here). I've tried loading the various vcxproj and sln tiles and they…
Some Newbie
  • 1,059
  • 3
  • 14
  • 33
1
2
3
11 12