-
Notifications
You must be signed in to change notification settings - Fork 6
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
Expand Image class capability #33
Comments
e9f6140 commit changes:
|
RippeR37
added a commit
that referenced
this issue
Apr 9, 2015
RippeR37
added a commit
that referenced
this issue
Apr 9, 2015
RippeR37
added a commit
that referenced
this issue
Apr 9, 2015
RippeR37
added a commit
that referenced
this issue
Apr 10, 2015
…lems with padding/alignment by forcing it to all images loaded from files where it doesn't occur normally. This includes adding padding to TGA, JPEG and PNG formats when loaded, and stripping padding when saving image to files when needed. Implemented saving images to BMP files.
RippeR37
added a commit
that referenced
this issue
Apr 11, 2015
RippeR37
added a commit
that referenced
this issue
Apr 11, 2015
…itignore` file to skip lastImage file created by `Image example`.
RippeR37
added a commit
that referenced
this issue
Apr 12, 2015
RippeR37
added a commit
that referenced
this issue
Apr 12, 2015
…d in Image data. Fixed implementation in getPixel() method to support padding/4-byte alignment.
RippeR37
added a commit
that referenced
this issue
Apr 12, 2015
RippeR37
added a commit
that referenced
this issue
Apr 12, 2015
RippeR37
added a commit
that referenced
this issue
Apr 12, 2015
RippeR37
added a commit
that referenced
this issue
Apr 12, 2015
… when new image was loaded in some specific cases. Implemented method to get size of image's row aligned to 4 bytes to ease usage and and creating new (custom) modules by users.
RippeR37
added a commit
that referenced
this issue
Apr 15, 2015
RippeR37
added a commit
that referenced
this issue
Apr 15, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Implement new features, such as:
loading multiple image file formats:BMPTGAJPEGPNG(Be aware that PNG files can have corrupted sRGB profile and this could lead to incorect behaviour of saving such images or they can be displayed incorrectly!)saving images to files using formats:BMPTGAJPEGPNGsaving screenshots from applications (both at the end of rendering frame or exactly now)whole-screen screenshotsuser-defined-rectangle screenshotget/set method for accessing pixelstransform to grayscaleinvert colorscropping(if cropped image is out of image's boundaries, it's move to fit with smaller size)invert(flip) horizontaly/verticalyrotate (90deg clock-wise, 90deg counter-clock-wise, 180deg)Be aware that images loaded in
Image
class manually (with custom loader or as copy of existing array) has to have 4-byte alignment in each row. Please refer to implementation ofunsigned int Image::getAlignedRowSize(unsigned int width, unsigned int bits)
method which returns size (in bytes) of aligned to 4bytes image's row. This method havepublic static
modifier which allows you to use it in your own module based your own data to calculate proper row size.The text was updated successfully, but these errors were encountered: