Bmp.rc
上传用户:s6549606
上传日期:2015-11-11
资源大小:12002k
文件大小:2k
源码类别:

图形图像处理

开发平台:

Visual C++

  1. #include "bmp.h"
  2. /////////////////////////////////////////////////////////////////////////////
  3. //
  4. // Menu
  5. //
  6. BMPMENU MENU DISCARDABLE 
  7. BEGIN
  8.     POPUP "File"
  9.     BEGIN
  10.         MENUITEM "Open",                        IDM_LOADBMP
  11.         MENUITEM "Exit",                        IDM_EXIT
  12.     END
  13.     POPUP "Color Operation"
  14.     BEGIN
  15.         MENUITEM "True to 256",                 IDM_TRUE256
  16.         MENUITEM "Color to Grayscale",          IDM_CLRGRAY
  17.         MENUITEM "Invert",                      IDM_INVERT
  18.         MENUITEM SEPARATOR
  19.         MENUITEM "Contrast Stretching...",      IDM_CONTSTRETCH
  20.         MENUITEM "Cliping...",                  IDM_CLIPING
  21.         MENUITEM "Thresholding...",             IDM_THRESHOLD
  22.         MENUITEM "Slicing without Background...", IDM_SLICEWITHOUTBACK
  23.         MENUITEM "Slicing with Background...",  IDM_SLICEWITHBACK
  24.         MENUITEM SEPARATOR
  25.         MENUITEM "Histogram Display...",        IDM_HISTOGRAM
  26.         MENUITEM "Histogram Equalization",      IDM_HISTOGRAMEQUA
  27.     END
  28. END
  29. /////////////////////////////////////////////////////////////////////////////
  30. //
  31. // Dialog
  32. //
  33. INPUTBOX DIALOG DISCARDABLE  222, 17, 196, 102
  34. STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
  35. CAPTION "InputBox"
  36. FONT 8, "System"
  37. BEGIN
  38.     EDITTEXT        ID_FIRSTPOINT,59,14,28,12,ES_AUTOHSCROLL | ES_WANTRETURN
  39.     EDITTEXT        ID_SECONDPOINT,59,33,28,12,ES_AUTOHSCROLL | 
  40.                     ES_WANTRETURN
  41.     EDITTEXT        ID_STRETCHRATIO,59,52,28,12,ES_AUTOHSCROLL | 
  42.                     ES_WANTRETURN
  43.     EDITTEXT        ID_EQUASCALE,122,46,53,12,ES_AUTOHSCROLL | ES_WANTRETURN
  44.     DEFPUSHBUTTON   "OK",IDOK,82,82,32,14,WS_GROUP
  45.     GROUPBOX        "Contrast Stretching",IDC_STATIC,5,5,88,68
  46.     LTEXT           "first point:",IDC_STATIC,8,15,47,12
  47.     LTEXT           "ratio:",IDC_STATIC,8,51,47,12
  48.     LTEXT           "second point:",IDC_STATIC,8,33,47,12
  49.     LTEXT           "Please input gray scale",IDC_STATIC,104,21,84,8
  50.     GROUPBOX        "Histogram Equalization",IDC_STATIC,101,5,90,68
  51. END