-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to flip and turn Fl_(RGB_)Images #56
Comments
There are options to draw images flipped horiontally or vertically. This does not change the image in memory but can be useful. However, it's not possible to turn images 90°-wise. See documentation of arguments Side note: many drawing functions can also be used with a transformation matrix, but I have no idea if this is applicable to drawing images. See chapter Drawing Things in FLTK. That said, it's probably not the goal of FLTK to support image manipulations in memory. FLTK always tries to be There are interesting articles (start here) describing how to access image pixels in memory, maybe this is what you're looking for? |
Addendum: see also Direct Image Drawing which states:
to clarify that image drawing is not usable with a transformation. |
I'd offer this type of thing, if popular (and probably is) might warrant a separate .lib file, That'd keep the main library fast+light, while moving image ops to another lib. But again, not sure we want to go down that path, we're not an image lib.. there's |
Yep, after thinking about it, I'm really Please let's close this issue. @darealshinji ?? |
Yes, okay. I think there's also one of these 1-header-libraries that provides stuff like this. |
Here's an example with a function I wrote that turns and flips Fl_RGB_Images: https://gist.github.com/darealshinji/a134365c76fc1258ded0118cb1dcd594 |
I would be interesting if there was a simple way to do horizontal and vertical flips on images and to turn them 90° to the left or right. This could for example be used to modify images of arrows. In theory it's just copying pixels in a different order, but I'm having my issues implementing such a thing.
The text was updated successfully, but these errors were encountered: