I'm working on a little project where I need to make some simple image processing such as rotation, brightness, contrast and so on.
FreeImage is a nice lib for those things and I noticed that it's already included in the FITextueLoader Plugin so that's nice.
Is there a way to access the pixel-data in Pixmap so it an be used with the FreeImage functions?
Actually something like this:
FIBITMAP* Pixmap2FreeImage( std::shared_ptr<Pixmap> pixmap )
{
FIBITMAP* bmp = //??? pixmap->????
// ????
return bmp;
}
std::shared_ptr<UltraEngine::Pixmap> FreeImage2Pixmap(FIBITMAP* source)
{
std::shared_ptr<UltraEngine::Pixmap> pixmap = std::make_shared<UltraEngine::Pixmap>( );
// ???
return pixmap;
}