Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 13804, Flip, Reverse, Rotate a Bitmap

by Earl F. Glynn Email: efg2@efg2.com


Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 3.0  to 4.0 1525 downloads
Copyright: Commercial use requires permission


Size: 305,830 bytes
Updated on Mon, 16 Aug 1999 00:00:00 GMT
Originally uploaded on Mon, 16 Aug 1999 00:00:00 GMT
SHA1 Hash: E73AE331668FBF2A49A947D942CB18AA8633A4BA
MD5 Hash: 1D4CE7E35D2B8DD4384B53A5162FEBF6

    Explore the files in this upload

Description
FlipReverseRotate demonstrates how to flip (top-to-bottom) and/or reverse (left-to-right) a bitmap in memory and display the results on the screen. Three methods to flip/reverse are compared: Scanline, CopyRect, StretchBlt. In addition, a bitmap can be rotated any multiple of 90 degrees, namely 0, 90, 180, or 270 degrees counterclockwise, but only with the Scanline method.

See Item 13803 for fast rotations of any angle using the TBitmap Scanline property.

See Item 13805 for slow rotations of any angle using the TCanvas Pixels property.

See additional details, including examples of Flip/Reverse/Rotate and timing results in the "Lab Report" at http://www.efg2.com/Lab/ImageProcessing/FlipReverseRotate.htm

Keywords: TBitmap, TImage, Scanline, CopyRect, StretchBlt, Reverse Bitmap, Flip Bitmap, Bitmap Function, TRGBArray, pRGBArray, PixelFormat, pf24bit

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03