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
3 answers

Copy OpenCV IplImage or Mat into Freeimage FIBITMAP

I need to exchange data between FreeImage (FIBITMAP) and OpenCV format (IplImage and/or Mat). I'm fine with getting data from a FIBITMAP into an IplImage or Mat since FreeImage gives you a function FreeImage_GetScanLine which you can set the OPenCV…
SSilk
  • 2,433
  • 7
  • 29
  • 44
0
votes
0 answers

Image Packing Using FreeImage C++ Library, Pixel Values of all images are not adding

I was trying to pack multiple images in a single image, using Bin Packing algorithm. In the part of adding images in a single image I was trying with collecting all the image pixel values and put them in the empty frame, but this is not working. Is…
ikhaled28
  • 1
  • 5
0
votes
1 answer

With FreeImage is it possible to have ConvertToRawBits output in ARGB32 or RGBA32 rather than BGRA32?

I'm loading in a PNG to use as a texture in Unity. When I use ConvertToRawBits() it outputs to BGRA32. Is it possible to output to ARGB32 or RGBA32 instead? https://gist.github.com/ciwolsey/24635ea523b4a6b758783688be53bf86
ciwolsey
  • 97
  • 1
  • 1
  • 13
0
votes
1 answer

FreeImage portable float map (PFM) RGB channel order

I'm currently using FreeImage to load PFMs into a program that otherwise uses IplImages (the old data type for OpenCV). Here's a sample of what I'm doing (ignore the part about img being an array of Mats, that's related to some other code). FIBITMAP…
SSilk
  • 2,433
  • 7
  • 29
  • 44
0
votes
2 answers

OpenGL texture does not work with resolutions greater than 1x1

I'm currently developing a GUI system for a 3D game I'm working on. I'm using instanced rendering for a pretty good compromise of speed and memory usage. Everything works well so far, I'm able to display multiple colored rectangles on the screen (up…
eliaspr
  • 302
  • 3
  • 15
0
votes
1 answer

FreeImage: how to read and write image with EXIF?

Did not find the documentation. Can anyone give an example how to read image, replace data (from my buffer uchar[n][m]) and write image with EXIF?
Torvald
  • 33
  • 7
0
votes
1 answer

How to get subimage with FreeImage

As stated in the title, I am using FreeImage to load textures in my OpenGL game, but how do I get subimages? My current code looks like this: FREE_IMAGE_FORMAT fif = FIF_UNKNOWN; FIBITMAP* dib = nullptr; fif =…
0
votes
1 answer

How to compress FIBITMAP using FreeImagePlus?

I am using FreeImagePlus/FreeImage. I want to compress the bitmaps without saving them to HDD (files) using FreeImagePlus/FreeImage. The given function FreeImage_save does compress but its main aim is to save that image into a file in hard drive.…
tod
  • 1,539
  • 4
  • 17
  • 43
0
votes
0 answers

FreeImage Loading image into OpenGL

Previously, I have been loading bitmaps (.bmp) using a loader into an OpenGL texture using a tutorial bmp loader, but I want to be able to load different textures, so trying FreeImage. I am trying remove gamma correction, but with FreeImage the…
Swatcat
  • 73
  • 6
  • 21
  • 57
0
votes
0 answers

Cant convert image from db to FIBITMAP(freee image)

i have db with images in the byte array format. I need to upload particular image from there and compressed by free image methods. But first of all need to convert my byte array to FIBITMAP format.My code: string user = User.Identity.GetUserId(); …
0
votes
1 answer

compile and link OpenEXR emscripten multiple main function defines

I'm trying to compile OpenEXR with emscripten and link it to my program that will eventually be an html file. I have no problem compiling OpenEXR with emscripten. The problem is when I try to link the .bc file with my application. I get an error…
user2204292
  • 181
  • 1
  • 4
  • 10
0
votes
1 answer

Load jpg image as texture - freeimage, opengl

I tried to load jpg image with FreeImage Library. I used this code, but the result was only white window. I think to use this image like background and after that to load object file. It`s the code, that i used: #include #include…
I.To
  • 1
  • 3
0
votes
1 answer

FreeImage dll nor working for batch process

I need to load batches of image files and change their dimensions. I'm doing it through FreeImage.dll in C++. Each batch contains JPG and TIF files. The problem is the exe processes the first batch accurately but for further batches it starts…
Saubhagya
  • 1,075
  • 1
  • 9
  • 12
0
votes
1 answer

Can't make blending work

I have a 3 dimensional dataset where each value of the dataset is normalized to [0, 1]. I want to visualize this dataset by using texture, and blending. However, it seems that I can't make it work. Here is what I have done so far: int main(){ …
Sayan Pal
  • 4,768
  • 5
  • 43
  • 82
0
votes
1 answer

OpenGL 2D textures jittering/pulsing

I am currently working on a 2D game engine called Regula. I have just finished a batch rendering system that renders 2D textures submitted to it in batches of 32. In testing it's capability of rendering over 32 textures I found that the textures…