亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? colorshow.cpp

?? 是一個較好的縮放工具
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
// ColorShow.cpp : implementation file
//

#include "stdafx.h"
#include "resource.h"
#include "ColorShow.h"
#include "Picker.h"
#include "Shower.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

DECLARE_MESSAGE(UWM_POINT)
DECLARE_MESSAGE(UWM_PICKER)
/////////////////////////////////////////////////////////////////////////////
// CColorShow

CColorShow::CColorShow()
   {
    dx = 16;
    dy = 16;
    dropper = ::LoadCursor(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDC_PICKER));
    selection.SetRectEmpty();
   }

CColorShow::~CColorShow()
{
}


BEGIN_MESSAGE_MAP(CColorShow, CStatic)
        //{{AFX_MSG_MAP(CColorShow)
        ON_WM_LBUTTONDOWN()
        ON_WM_MOUSEMOVE()
        ON_WM_LBUTTONUP()
        ON_WM_PAINT()
        //}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CColorShow message handlers

/****************************************************************************
*                            CColorShow::StartPick
* Inputs:
*       CPoint pt: Current point
* Result: void
*       
* Effect: 
*       Starts the pick operation. Initiates capture mode, changes the
*       cursor to the pickup cursor, and indicates by setting select to
*       FALSE that we are in pickup mode, not selection mode.
****************************************************************************/

void CColorShow::StartPick(CPoint pt)
    {
     SetCapture();
     ::SetCursor(dropper);
     select = FALSE;
    } // CColorShow::StartPick

/****************************************************************************
*                          CColorShow::OnLButtonDown
* Inputs:
*       UINT nFlags:
*       CPoint point:
* Result: void
*       
* Effect: 
*       Starts a selection operation. Sets capture mode and indicates that
*       the mode is "select" mode, which influences how mouse-moves are handled
****************************************************************************/

void CColorShow::OnLButtonDown(UINT nFlags, CPoint point) 
   {
    SetCapture();
    CRect r;
    GetClientRect(&r);
    previous = anchor = point;
    select = TRUE;
        
    CStatic::OnLButtonDown(nFlags, point);
   }

/****************************************************************************
*                          CColorShow::MakeSelection
* Result: CRect
*       A normalized rectangle for the current selection
****************************************************************************/

CRect CColorShow::MakeSelection()
    {
     CRect r;
     r.left = previous.x;
     r.top = previous.y;
     r.right = anchor.x;
     r.bottom = anchor.y;
     r.NormalizeRect();
     return r;
    } // CColorShow::MakeSelection

/****************************************************************************
*                          CColorShow::DrawSelection
* Inputs:
*       CDC & dc: DC to use
* Result: void
*       
* Effect: 
*       Draws a focus rectangle.
****************************************************************************/

void CColorShow::DrawSelection(CDC & dc)
    {
     CRect r = MakeSelection();
     dc.DrawFocusRect(&r);
    } // CColorShow::DrawSelection

/****************************************************************************
*                           CColorShow::OnMouseMove
* Inputs:
*       UINT nFlags: ignored
*       CPoint point: The point where the mouse is
* Result: void
*       
* Effect: 
*       The point is in client coordinates, but because we are in mouse
*       capture mode, these could well be outside the client area of the window.
*       If the mouse was clicked in the window, indicating a sub-selection is
*       being done, a selection rectangle is rubber-banded. If it is in
*       pickup mode, with the picker activated, the coordinates are converted
*       to screen coordinates and the image is recaptured.
****************************************************************************/

void CColorShow::OnMouseMove(UINT nFlags, CPoint point) 
   {
    if(GetCapture())
       { /* has capture */
        if(select)
           { /* selection */
            CClientDC dc(this);
            DrawSelection(dc);
            previous = point;
            DrawSelection(dc);
           } /* selection */
        else
           { /* pickup */
            where = point;
            ClientToScreen(&where);
            RecomputeImage();
           } /* pickup */
       } /* has capture */
    else
       { /* no capture */
        // Simply report the pixel under the point. This is the pixel
        // under the cursor as it moves in the exploded selection
        CClientDC sourceDC(this);
        color = sourceDC.GetPixel(point);
        GetParent()->SendMessage(UWM_POINT, 0, (LPARAM)color);
       } /* no capture */
        
    CStatic::OnMouseMove(nFlags, point);
   }

/****************************************************************************
*                           CColorShow::OnLButtonUp
* Inputs:
*       UINT nFlags: ignored
*       UINT CPoint: Point at which the button is release
* Result: void
*       
* Effect: 
*       If we are the dragging mode, releases capture. If it was an internal
*       selection, creates a logical selection rectangle which is later
*       converted to device space to do the drawing. If an external search,
*       notifies the parent window that dragging has ended.
****************************************************************************/

void CColorShow::OnLButtonUp(UINT nFlags, CPoint point) 
   {
    if(GetCapture() != NULL)
       { /* had capture */
        ReleaseCapture();
        if(select)
           { /* selection */
            CClientDC dc(this);
            DrawSelection(dc); // erase the selection
            CRect r = MakeSelection(); // create a selection rectangle
            selection = MapSelection(r);
            Invalidate();
           } /* selection */
        else
           { /* pickup */
            GetParent()->SendMessage(UWM_PICKER, (WPARAM)FALSE); // indicate release
            selection.SetRectEmpty();
           } /* pickup */
       } /* had capture */
    CStatic::OnLButtonUp(nFlags, point);
   }

/****************************************************************************
*                             CColorShow::GetSize
* Result: CSize
*       The size to use for computations
****************************************************************************/

CSize CColorShow::GetSize()
    {
     CRect r;
     GetClientRect(&r);
     CSize sz(r.Width() + 1, r.Height() + 1);
     return sz;
    } // CColorShow::GetSize

/****************************************************************************
*                            CColorShow::PrepareDC
* Inputs:
*       CDC & dc: DC to prepare
* Result: void
*       
* Effect: 
*       Sets the mapping mode
****************************************************************************/

void CColorShow::PrepareDC(CDC & dc)
    {
     CSize sz = GetSize();
     dc.SetMapMode(MM_ISOTROPIC);
     dc.SetWindowExt(dx, dy); // Note: Win32 Programming p. 267 says window-before-viewport
     dc.SetViewportExt(sz.cx, sz.cy);
    } // CColorShow::PrepareDC

/****************************************************************************
*                          CColorShow::MapSelection
* Inputs:
*       const CRect & r: Selection rectangle in exploded view
* Result: CRect
*       The representation as coordinates relative to the bitmap
****************************************************************************/

CRect CColorShow::MapSelection(const CRect & r)
    {
     CRect nr = r;
     CSize sz = GetSize();
     CClientDC dc(this);

     dc.SetMapMode(MM_ISOTROPIC);
     dc.SetWindowExt(dx, dy); // Note: Win32 Programming p. 267 says window-before-viewport
     dc.SetViewportExt(sz.cx, sz.cy);
     dc.DPtoLP(&nr);
     return nr; 
    } // CColorShow::MapSelection

/****************************************************************************
*                             CColorShow::OnPaint
* Result: void
*       
* Effect: 
*       Draws the image. This includes the centroid box during picking, and
*       the selection box after a selection has been made. Note the use of
*       scaling to convert between these coordinate systems.
****************************************************************************/

void CColorShow::OnPaint() 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
五月婷婷综合激情| 欧美亚洲国产一区二区三区| 欧美精品在线观看播放| 亚洲成人av电影| 日韩一区二区三区视频| 国产一区二区三区久久悠悠色av| 欧美一区二区性放荡片| 久久疯狂做爰流白浆xx| 久久久精品综合| 欧美日韩一区二区三区四区五区| 亚洲成人黄色小说| 国产日韩欧美综合在线| 一本一道久久a久久精品| 麻豆精品久久精品色综合| 国产精品二三区| 日韩欧美色电影| 欧美人与性动xxxx| 色呦呦日韩精品| 成人性生交大片免费看在线播放 | 欧美少妇性性性| 国产精品99久久久久久久女警| 亚洲黄色尤物视频| 中文字幕亚洲不卡| 久久精子c满五个校花| 9191久久久久久久久久久| 成人精品鲁一区一区二区| 男人操女人的视频在线观看欧美| 国产精品久久久久一区| 中文字幕第一页久久| 久久久久久97三级| 久久精品一区二区三区不卡| 欧美一区日本一区韩国一区| 欧美二区三区91| 91精品婷婷国产综合久久性色| 色婷婷激情一区二区三区| 色综合久久久久久久久久久| 99久久99久久综合| 一本一本久久a久久精品综合麻豆| 高清日韩电视剧大全免费| 成人免费视频国产在线观看| 国产精品88888| 色综合中文字幕| 精品视频999| 日韩欧美中文一区二区| 日韩一区欧美小说| 国产欧美日韩精品一区| 91国模大尺度私拍在线视频| 亚洲成av人片一区二区梦乃| 久久久久久久久99精品| 亚洲精品一区二区三区蜜桃下载 | 国产99久久久国产精品免费看| 九色porny丨国产精品| 蜜桃av一区二区在线观看 | 国产精品美女www爽爽爽| 99精品国产视频| 中文字幕在线不卡| 亚洲国产精品久久人人爱蜜臀| 蜜臀av一级做a爰片久久| 成人av手机在线观看| 国产精品综合一区二区三区| 91在线一区二区三区| 日韩精品在线一区二区| 一区二区三区在线观看动漫| 婷婷久久综合九色国产成人| 国产·精品毛片| 久久久午夜精品| 久久www免费人成看片高清| 色综合中文字幕国产 | 午夜精品aaa| 91麻豆精品在线观看| 欧美精品一区视频| 麻豆精品视频在线观看免费| 欧美性猛交xxxxxxxx| 亚洲欧洲性图库| 国产suv精品一区二区三区| 日韩视频永久免费| 蜜桃久久精品一区二区| 欧美一区二区三区免费在线看| 亚洲一区影音先锋| 欧美午夜精品一区| 天天色 色综合| 日韩视频不卡中文| 久久精品国产亚洲5555| 久久这里只有精品视频网| 国产精品资源在线| 最新不卡av在线| 欧美日韩黄色一区二区| 婷婷综合在线观看| 久久久电影一区二区三区| 国产精品综合一区二区三区| 亚洲欧洲av另类| 欧美日韩一本到| 黄页视频在线91| 亚洲精品高清在线| 欧美一区二区二区| 色综合一个色综合| 激情另类小说区图片区视频区| 国产免费观看久久| 欧美一区二区视频免费观看| 国产成人综合在线| 奇米精品一区二区三区四区| 国产三级欧美三级日产三级99| 色婷婷av一区二区三区软件| 激情五月激情综合网| 亚洲国产综合视频在线观看| 欧美精品一区二区三区蜜桃 | 国产精品美女视频| 日韩三级在线观看| 欧美日韩精品综合在线| fc2成人免费人成在线观看播放 | 欧美日韩黄视频| 91蜜桃网址入口| aaa欧美大片| 岛国一区二区三区| 国产精品中文欧美| 国产盗摄视频一区二区三区| 久久www免费人成看片高清| 无吗不卡中文字幕| 亚洲成av人片www| 蜜臀av性久久久久蜜臀aⅴ| 亚洲国产日韩a在线播放| 亚洲午夜私人影院| 一区二区三区高清不卡| 亚洲mv在线观看| 亚洲图片你懂的| 亚洲电影你懂得| 久久精品国产77777蜜臀| 精品在线免费视频| 国产一区二区久久| eeuss鲁片一区二区三区在线看| 成人一区二区三区在线观看| 色综合天天天天做夜夜夜夜做| 色婷婷狠狠综合| 日韩一区二区在线免费观看| 久久久噜噜噜久久人人看 | 婷婷久久综合九色国产成人| 日韩国产欧美三级| 粉嫩高潮美女一区二区三区| 91视视频在线观看入口直接观看www| 欧美在线一二三四区| 日韩一级高清毛片| 亚洲视频每日更新| 麻豆专区一区二区三区四区五区| 国产曰批免费观看久久久| 一本色道a无线码一区v| 欧美一区二区成人6969| 国产精品国产三级国产| 国产电影精品久久禁18| 欧美一区二区网站| 日韩av中文字幕一区二区三区| 成人免费视频caoporn| 精品日韩在线观看| 日韩—二三区免费观看av| 91蝌蚪porny九色| 国产精品的网站| 成人国产视频在线观看| 2欧美一区二区三区在线观看视频| 亚洲影院在线观看| 在线免费观看视频一区| 亚洲一区二区视频| 欧美日韩在线一区二区| 中文字幕在线不卡一区 | 九九视频精品免费| 欧美日韩情趣电影| 日韩国产欧美在线播放| 欧美日韩亚洲综合在线| 午夜精品爽啪视频| 欧美一区二区成人6969| 久久国产尿小便嘘嘘尿| 久久蜜桃av一区精品变态类天堂| 美国精品在线观看| 中文乱码免费一区二区| 99久久夜色精品国产网站| 一区二区三区在线视频播放| 91视视频在线观看入口直接观看www| 国产午夜精品在线观看| 99九九99九九九视频精品| 亚洲综合在线五月| 久久中文字幕电影| 欧美日韩一区二区三区免费看| 九一久久久久久| 午夜久久久久久久久| 国产精品久久久久四虎| 欧美在线制服丝袜| 成人国产精品视频| 国产永久精品大片wwwapp| 欧美三级三级三级爽爽爽| 亚洲精选视频在线| 91影院在线免费观看| 日韩国产欧美在线视频| 18成人在线视频| 国产精品网站在线| 欧美va亚洲va国产综合| 欧美日韩国产综合一区二区三区 | 1024国产精品| 国产精品素人一区二区| 久久精品视频免费| 国产午夜精品久久久久久免费视| 日韩三级免费观看| 久久精品亚洲麻豆av一区二区|