All Create functions in the GUI part are returning Widget's as shared pointers.
Does this mean that the AppKit also owns the returned Widget internally and destroys them internally att program exit?
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;
}
Here is the one with the white bar at top.
Removed Resizable and the white bar is gone. So the problem is Resizable ... if the bar isn't intestinally there of some strange reason ?
The white bar in the example above shouldn't bee there in my humble opinion
I tested the simple code in the "Create an Image Viewer" in the Tutorials.
All images I tested works well when loaded. However some of the become distorted and grayscale when saved, but only some of them.
I have enclosed such an image. The original and the one saved by the Image Viewer example