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
0
votes
1 answer

How to reduce j2k file size in c#?

I am using FreeImageNet.dll to compress j2k file(100KB) using various FREE_IMAGE_LOAD_FLAGS. sample code is here. string fileName=abc.jpg; string outFileName=xyz.j2k; FREE_IMAGE_FORMAT imageFormat = FREE_IMAGE_FORMAT.FIF_J2K; …
stack
  • 59
  • 1
  • 6
0
votes
2 answers

FreeImage zero width and height

I'm trying to load a .png and a .DDS file in FreeImage, but the width and height are always zero. #include #include #include int main(void){ const char* path = "Signal.png"; printf("Loading image %s\n",…
Christian Stewart
  • 15,217
  • 20
  • 82
  • 139
0
votes
1 answer

Fail to static linking FreeImage 3.15.4 on MingW

I can't static lingking FreeImage 3.15.4 on MingW (either using .lib nor .a). I always receive error "undefined reference to" all FreeImage method. While I successfully dynamic linking the library. Then I try build from the source, it's the same. I…
0
votes
2 answers

textures vanishing in opengl

i am seeing this problem where the textures disappear after the application has been used for a minutes or two. why would the textures be disappearing? the 3d cube remains on the screen at all times. the place which the textures were appear as …
BigBug
  • 6,202
  • 23
  • 87
  • 138
0
votes
4 answers

C++ Function with pointer as parameter and Handle it with swig interface

I have created swig interface file to create JNI for my C++ Files. but some of my C++ Files include functions which accept pointer as argument like (void*) , C++ BOOL and Swig converts it into type like SWIGTYPE_p_int32_t how to pass such kind of…
Kirtan
  • 1,782
  • 1
  • 13
  • 35
0
votes
0 answers

Cannot use FreeImage.Load and FreeImage.Loadex functions

I am using FreeImage dll to display jpeg2000 image file. but when I run some demo, all of them do not run success. they stop at first time I call FreeImage API function. (FreeImage.LoadEx, FreeImage.Load .., etc), everything are same with sample of…
0
votes
0 answers

fipWinImage access error

Currently I'm using fipWinImage to draw image on screen, my code is written in C++(as following). fipWinImage* m_ClientColorImg; ..... float width = m_ClientColorImg->getWidth(); The initialization of m_ClientColorImg is not listed here.…
0
votes
1 answer

Transparency in FreeImage goes crazy

In my program I want to load a PNG or ICO file (with transparency) and then save it as a ICO file with transparency. This is a random png image for testing: ...As you can see it haves transparency. But when I try to convert it to ICO this is the…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
0
votes
1 answer

diplaying jp2 in a picturebox in C# / .NET 2.0 on CE5 using FreeImage

I'm trying to display a jp2 image in a picturebox on a CE5 device using FreeImage. Everything works fine on the win32 side where I do initial code testing, but I get a compile error when compiling for CE5. This line: Bitmap bmFacial =…
alexsd
  • 113
  • 1
  • 1
  • 12
0
votes
3 answers

Calculating a 48-bit image histogram

I have a 48-bit (16 bits per pixel) image I've loaded with FreeImage. I'm trying to generate a histogram from this image without having to convert it to a 24-bit image. This is how I understand histograms are calculated.. for (pixel in pixels) { …
Josh
  • 6,046
  • 11
  • 52
  • 83
0
votes
1 answer

record opengl video without separate program or library

how do i take Data from a FIBITMAP (Free-Image image) object and store it into a binary file. i already know how to store the data as an image but i would like to instead store it as a video akin to Fraps. my goal is to create a list of FIBITMAP…
0
votes
1 answer

How to know the compress rate of a jpeg image?

Is there any method to know the compress rate of a jpeg image? When I am using photoshop, I can set the compress rate when saving a jpeg image, When I am opening a jpeg image, can I read the compress rate of it? I am using freeimage, c++, however I…
user25749
  • 4,825
  • 14
  • 61
  • 83
0
votes
1 answer

Displaying EXR files in Windows Forms

I'm struggling with FreeImage and the documentation is not helping me a lot! I need to display a tif, an exr or an HDR image in a picturebox with C# and I'm not succeeding and I wonder how can I do it... I'm getting the error: Only bitmaps with type…
user1782638
  • 130
  • 1
  • 13
0
votes
1 answer

Compile errors FreeImage on C#

I keep receiving several error messages (currently 35) when I try to compile FreeImageNET C# wrapper. All the messages are in the same format. Actually I've found that this question has been asked before, and the answer was to change "typeparamref"…
0
votes
1 answer

FreeImageNET TIFF conevertion error

We have some TIFF files and we want to convert it to JPEG. We try to use FreeImageNET wrapper to FreeImage library. In C# we have code: dib = FreeImage.Load(FREE_IMAGE_FORMAT.FIF_TIFF, path, FREE_IMAGE_LOAD_FLAGS.DEFAULT); TIFF image load Ok, no…
1 2 3
11
12