Click here to Skip to main content
15,897,291 members
Articles / Programming Languages / C++

Image Viewer Utility

Rate me:
Please Sign up or sign in to vote.
4.94/5 (50 votes)
10 Mar 2007CPOL18 min read 407.9K   19.2K   200  
A little utility program that allows you to view the contents of memory bitmaps and device contexts while you are stepping through your drawing code.
//Microsoft Developer Studio generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32

/////////////////////////////////////////////////////////////////////////////
//
// Icon
//

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_ICON1               ICON    DISCARDABLE     "Eye01j.ico"

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE DISCARDABLE 
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE DISCARDABLE 
BEGIN
    "#include ""afxres.h""\r\n"
    "\0"
END

3 TEXTINCLUDE DISCARDABLE 
BEGIN
    "\r\n"
    "\0"
END

#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Bitmap
//

IDB_GRIDBRUSH           BITMAP  DISCARDABLE     "bitmap1.bmp"

#ifndef _MAC
/////////////////////////////////////////////////////////////////////////////
//
// Version
//

VS_VERSION_INFO VERSIONINFO
 FILEVERSION 1,2,0,10
 PRODUCTVERSION 1,2,0,10
 FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
 FILEFLAGS 0x1L
#else
 FILEFLAGS 0x0L
#endif
 FILEOS 0x40004L
 FILETYPE 0x1L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904b0"
        BEGIN
            VALUE "Comments", "This is FreeWare - Provided as is, Use at your own risk.\0"
            VALUE "CompanyName", "PJ Arends - pja@telus.net\0"
            VALUE "FileDescription", "Viewer portion of the Image Viewer utility\0"
            VALUE "FileVersion", "1, 2, 0, 10\0"
            VALUE "InternalName", "ImageViewer\0"
            VALUE "LegalCopyright", "Copyright � 2001 - 2004\0"
            VALUE "LegalTrademarks", "\0"
            VALUE "OriginalFilename", "ViewerApp.exe\0"
            VALUE "PrivateBuild", "\0"
            VALUE "ProductName", "Image Viewer Utility\0"
            VALUE "ProductVersion", "1, 2, 0, 10\0"
            VALUE "SpecialBuild", "\0"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x409, 1200
    END
END

#endif    // !_MAC


/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_ABOUTMESSAGE        "Written by PJ Arends\npja@telus.net\n\nThis utility is FREEWARE\nSource codes are available.\n\nFiles included in this utility are :\n   ImageViewer.h.\n   Viewerdll.dll.\n   Viewerdll.lib.\n   ViewerApp.exe\n\nUse this little utility to sneak a peek\nat the contents of in memory bitmaps or\ndevice contexts while you are stepping\nthrough your drawing code."
    IDS_ABOUTTITLE          "About Image Viewer 1.2"
    IDS_ABOUTTITLEDEBUG     "About Image Viewer 1.2 - DEBUG VERSION"
    IDS_DEFAULTAPPTITLE     "Image Viewer - [No Image]"
    IDS_APPTITLE            "Image Viewer - [%i  X %i Pixels, %i Bits per Pixel]"
    IDS_ONTOP               "Always On &Top"
    IDS_ABOUT               "&About Image Viewer"
    IDS_TOOLTIPDEC          "%i, %i - R:%i G:%i B:%i"
    IDS_TOOLTIPHEX          "%i, %i - R:%02X G:%02X B:%02X"
    IDS_SHOWGRID            "Show &Grid"
    IDS_HEXTOOLTIP          "He&xadecimal on ToolTips"
END

#endif    // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//


/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
President
Canada Canada
Father of two, brother of two, child of two.
Spouse to one, uncle to many, friend to lots.
Farmer, carpenter, mechanic, electrician, but definitely not a plumber.
Likes walks with the wife, board games, card games, travel, and camping in the summer.
High school graduate, college drop-out.
Hobby programmer who knows C++ with MFC and the STL.
Has dabbled with BASIC, Pascal, Fortran, COBOL, C#, SQL, ASM, and HTML.
Realized long ago that programming is fun when there is nobody pressuring you with schedules and timelines.

Comments and Discussions