Jump to content

AppKit: Using FreeImage together with Pixmap


Roland
 Share

Recommended Posts

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;
}

image.thumb.png.e27fca3ae6cfbd7f90b4dd5704ff6da6.png

AV MX Linux

Link to comment
Share on other sites

  • Roland changed the title to AppKit: Using FreeImage together with Pixmap
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...