Bmp.rc
上传用户:s6549606
上传日期:2015-11-11
资源大小:12002k
文件大小:6k
- #include "bmp.h"
- /////////////////////////////////////////////////////////////////////////////
- //
- // Menu
- //
- BMPMENU MENU DISCARDABLE
- BEGIN
- POPUP "File"
- BEGIN
- MENUITEM "Open", IDM_LOADBMP
- MENUITEM "Exit", IDM_EXIT
- END
- POPUP "Geometric Transform"
- BEGIN
- MENUITEM "Translation...", IDM_TRANSLATION
- MENUITEM "Rotation...", IDM_ROTATION
- MENUITEM "Mirror X Direction", IDM_MIRRORX
- MENUITEM "Mirror Y Direction", IDM_MIRRORY
- MENUITEM "Transpose", IDM_TRANSPOSE
- MENUITEM "Zoom...", IDM_ZOOM
- END
- POPUP "Smoothing && Sharpening"
- BEGIN
- MENUITEM "Box Smoothing", IDM_SMOOTHING_BOX
- MENUITEM "Gauss Smoothing", IDM_SMOOTHING_GAUSS
- POPUP "Median Filtering"
- BEGIN
- MENUITEM "Horizontal", IDM_HMEDIAN
- MENUITEM "Vertical", IDM_VMEDIAN
- END
- MENUITEM SEPARATOR
- MENUITEM "Laplacian Sharpening", IDM_SHARPENING_LAPLACIAN
- END
- POPUP "Halftone"
- BEGIN
- MENUITEM "Limb Pattern M3", IDM_LIMBPATTERNM3
- MENUITEM "Limb Pattern M4", IDM_LIMBPATTERNM4
- MENUITEM SEPARATOR
- MENUITEM "Floyd Steinberg", IDM_STEINBERG
- MENUITEM SEPARATOR
- MENUITEM "Bmp to Txt", IDM_BMP2TXT
- END
- POPUP "Color Operation"
- BEGIN
- MENUITEM "True to 256", IDM_TRUE256
- MENUITEM "Color to Grayscale", IDM_CLRGRAY
- MENUITEM "Invert", IDM_INVERT
- MENUITEM SEPARATOR
- MENUITEM "Contrast Stretching...", IDM_CONTSTRETCH
- MENUITEM "Cliping...", IDM_CLIPING
- MENUITEM "Thresholding...", IDM_THRESHOLD
- MENUITEM "Slicing without Background...", IDM_SLICEWITHOUTBACK
- MENUITEM "Slicing with Background...", IDM_SLICEWITHBACK
- MENUITEM SEPARATOR
- MENUITEM "Histogram Display...", IDM_HISTOGRAM
- MENUITEM "Histogram Equalization", IDM_HISTOGRAMEQUA
- END
- POPUP "Morph"
- BEGIN
- POPUP "Dilation"
- BEGIN
- MENUITEM "Horizontal", IDM_HDILATION
- MENUITEM "Vertical", IDM_VDILATION
- END
- POPUP "Erosion"
- BEGIN
- MENUITEM "Horizontal", IDM_HEROSION
- MENUITEM "Vertical", IDM_VEROSION
- END
- POPUP "Open"
- BEGIN
- MENUITEM "Horizontal", IDM_HOPEN
- MENUITEM "Vertical", IDM_VOPEN
- END
- POPUP "Close"
- BEGIN
- MENUITEM "Horizontal", IDM_HCLOSE
- MENUITEM "Vertical", IDM_VCLOSE
- END
- MENUITEM SEPARATOR
- MENUITEM "Thinning", IDM_THINNING
- END
- POPUP "Edge Detection"
- BEGIN
- POPUP "Sobel"
- BEGIN
- MENUITEM "Horizontal", IDM_HSOBEL
- MENUITEM "Vertical", IDM_VSOBEL
- END
- POPUP "Isotropic Sobel"
- BEGIN
- MENUITEM "Horizontal", IDM_HISOSOBEL
- MENUITEM "Vertical", IDM_VISOSOBEL
- END
- MENUITEM "Laplacian of Gaussian", IDM_LOG
- MENUITEM SEPARATOR
- MENUITEM "Hough", IDM_HOUGH
- MENUITEM "Outline", IDM_OUTLINE
- MENUITEM "SeedFill", IDM_SEEDFILL
- MENUITEM "Contour Following", IDM_CONTOUR
- END
- POPUP "Image Detection"
- BEGIN
- POPUP "Projection"
- BEGIN
- MENUITEM "Horizontal", IDM_HPROJECTION
- MENUITEM "Vertical", IDM_VPROJECTION
- END
- MENUITEM "Subtraction", IDM_SUBTRACTION
- END
- POPUP "Compression && Coding"
- BEGIN
- MENUITEM "Run Length", IDM_RUNLENGTH
- MENUITEM "Jpeg", IDM_JPEG
- END
- END
- /////////////////////////////////////////////////////////////////////////////
- //
- // Dialog
- //
- INPUTBOX DIALOG DISCARDABLE 222, 17, 281, 166
- STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
- CAPTION "InputBox"
- FONT 8, "System"
- BEGIN
- EDITTEXT ID_XOFFSET,43,28,44,12,ES_AUTOHSCROLL | ES_WANTRETURN
- EDITTEXT ID_YOFFSET,43,50,44,12,ES_AUTOHSCROLL | ES_WANTRETURN
- EDITTEXT ID_ANGLE,114,45,53,12,ES_AUTOHSCROLL | ES_WANTRETURN
- EDITTEXT ID_ZOOMRATIO,17,114,53,12,ES_AUTOHSCROLL | ES_WANTRETURN
- EDITTEXT ID_FIRSTPOINT,151,82,28,12,ES_AUTOHSCROLL |
- ES_WANTRETURN
- EDITTEXT ID_SECONDPOINT,151,101,28,12,ES_AUTOHSCROLL |
- ES_WANTRETURN
- EDITTEXT ID_STRETCHRATIO,151,120,28,12,ES_AUTOHSCROLL |
- ES_WANTRETURN
- EDITTEXT ID_EQUASCALE,210,45,53,12,ES_AUTOHSCROLL | ES_WANTRETURN
- DEFPUSHBUTTON "OK",IDOK,124,146,32,14,WS_GROUP
- CTEXT "x:",IDC_STATIC,11,29,23,12
- CTEXT "Please input offset",IDC_STATIC,9,17,72,8
- CTEXT "y:",IDC_STATIC,11,50,23,12
- GROUPBOX "Translation",IDC_STATIC,5,4,88,68
- CTEXT "Please input angle(CW)",IDC_STATIC,100,20,80,8
- GROUPBOX "Rotation",IDC_STATIC,97,4,88,68
- LTEXT "Please input ratio",IDC_STATIC,17,83,64,8
- GROUPBOX "Zoom",IDC_STATIC,5,73,88,65
- LTEXT "(0.25<=ratio<=4)",IDC_STATIC,17,97,56,11
- GROUPBOX "Contrast Stretching",IDC_STATIC,97,73,88,65
- LTEXT "first point:",IDC_STATIC,100,83,47,12
- LTEXT "ratio:",IDC_STATIC,100,119,47,12
- LTEXT "second point:",IDC_STATIC,100,101,47,12
- LTEXT "Please input gray scale",IDC_STATIC,192,20,84,8
- GROUPBOX "Histogram Equalization",IDC_STATIC,189,4,90,68
- END