

- #IMAGEVIEWER PORTABLE INSTALL#
- #IMAGEVIEWER PORTABLE 32 BIT#
- #IMAGEVIEWER PORTABLE FULL#
- #IMAGEVIEWER PORTABLE CODE#
With the ShowRegion functions, which are based on code supplied by WalderMort, it is possible to show the HRGN in black on the default background, or if a background image is supplied as either a HBITMAP or HDC the HRGN will be shown by inverting the pixels of the background image that are within the supplied HRGN. The image is drawn three times: ILD_NORMAL on top, ILD_TRANSPARENT in the middle, and the bottom is drawn using the custom ILD_* flags parameter. Specifying -1 as the index will draw the entire image list. The index may be -1, or a legal index for the image list. They are the image list's handle, the index of the image in the list, and a custom ILD_* display flag. The ShowImageList() function, which was originally written by Jrgen Sigvardsson, works a little differently as it takes three parameters. The Image Viewer application with a cursor

The left most part is the AND mask, the middle is the XOR mask, and the right most part is the actual icon or cursor as it will appear when drawn. The ShowIcon() and ShowCursor functions show the icon or cursor as a three part horizontal image. ShowGDIPlusBitmap(bmp) // take a peek at what is drawn. To watch a Gdiplus::Graphics object that you may be working on, create it with an Image, and watch that Image. The ShowBitmap(), ShowDC(), and ShowGDIPlusBitmap() functions will show the image "as-is". The possible return codes are explained below.
#IMAGEVIEWER PORTABLE INSTALL#
If you are running Windows 2000 you may have to download and install the GDI+ redistributable files available from the Microsoft website. The Image Viewer application also makes use of GDI+. Follow the directions on that page to download and install the vcredist_x86.exe runtime installer. The runtimes can by obtained from the Microsoft website.
#IMAGEVIEWER PORTABLE 32 BIT#
System Requirementsīecause the Image Viewer application is a 32 bit MFC 8.0 unicode application you will need the Visual C++ 8.0 runtimes installed on your machine in order to use it.

Both the header and library files have been tested with Visual C++ 6.0 and Visual C++ 8.0, using both MBCS and Unicode builds. The ImageViewer.h header file and the ImageViewer.dll library file were both written using only the Win32 APIs and some ATL. The demo application download contains all the source code. The Image Viewer download contains just the compiled files and the ImageViewer.h header file. Use it to peek at HDCs, HBITMAPs, HICONs, HCURSORs, HFONTs, HIMAGELISTs, HRGNs, and Gdiplus::Images. It has a zoom feature so you can get a real close look at what you are drawing, or a good overview of a larger picture. The Image Viewer is a simple utility program that you can plug into your drawing code. Have you ever debugged a graphics routine where you would really like to see what the images you are working with in memory actually looked like while you are stepping through your code? Well, now you can!!!

#IMAGEVIEWER PORTABLE FULL#
Download demo project and full source code - 223 Kb.
