In order to compare images pixel by pixel, both images must be uncompressed bitmaps of the same size, dimensions and colour depth. If you're looking for an exact match, then you simply compare the pixels in tandem (you can treat both images as being an array of int to speed up the process).
With libbmp and libjpeg. STFW for details.
There are no pixels in the C compiler!
Use a bitmap view control setting the width and height to the size of the cropped image. Then move the image within this window so the portion you wish to see is centred in the view. For example, suppose you have a 50x48 pixel image and you want to crop to 48x48. In other words you want to remove two columns of pixels from the left side, or one column from each side, or two from the right side. Start by creating a view of the required size (48x48). Then load the bitmap and set the left coordinate to either -2, -1 or 0, relative to the view.
use the strrev() function on the given string and compare with original string.If both are equal they are palindromes else not.
C++ does not provide any native support for graphics of any kind, including graphic image formats. This is because graphics are platform-specific while C++ is a generic language. You can, of course, use graphics in C++, but you need a graphics library and API that is specific to your platform and hardware. There is no generic code available as the code you use is entirely dependant upon the library.
"http://wiki.answers.com/Q/How_will_you_compare_turbo_c_to_c_plus_plus_language"
"http://wiki.answers.com/Q/How_will_you_compare_turbo_c_to_c_plus_plus_language"
i will give the answer one day waiting for me...
With libbmp and libjpeg. STFW for details.
C++ has nothing to do with pixels. Your question may be related with 'Windows programming' or 'DOS programming' or 'X Window System programming'.
There are no pixels in the C compiler!
Use a bitmap view control setting the width and height to the size of the cropped image. Then move the image within this window so the portion you wish to see is centred in the view. For example, suppose you have a 50x48 pixel image and you want to crop to 48x48. In other words you want to remove two columns of pixels from the left side, or one column from each side, or two from the right side. Start by creating a view of the required size (48x48). Then load the bitmap and set the left coordinate to either -2, -1 or 0, relative to the view.
Image files are not executable. Therefore impossible. However, the only trick is to put your executable look like image using image icon and making the extension like this Mypicture.jpg.exe
use the strrev() function on the given string and compare with original string.If both are equal they are palindromes else not.
b+b+b+c+c+c+c =3b+4c
c + c + 2c + c + c = 6c
C++ does not provide any native support for graphics of any kind, including graphic image formats. This is because graphics are platform-specific while C++ is a generic language. You can, of course, use graphics in C++, but you need a graphics library and API that is specific to your platform and hardware. There is no generic code available as the code you use is entirely dependant upon the library.