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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? modbitmap.bas

?? ktv場所的包房開房、迎賓、預(yù)定管理系統(tǒng)。
?? BAS
?? 第 1 頁 / 共 3 頁
字號:
' If the function fails, the return is FALSE
'
' --------------------------------------------------
' These type definitions were taken from OCIDL.H
' --------------------------------------------------
' typedef LONG OLE_XPOS_HIMETRIC;
' typedef LONG OLE_YPOS_HIMETRIC;
' typedef LONG OLE_XSIZE_HIMETRIC;
' typedef LONG OLE_YSIZE_HIMETRIC;
'
'========================================================================================================
Public Function Convert_PX_HM(ByVal InputHeight As Long, _
                              ByVal InputWidth As Long, _
                              ByRef OutputHeight As Long, _
                              ByRef OutputWidth As Long, _
                              Optional ByVal VB_Picture As Boolean = True) As Boolean
On Error Resume Next
  
  Dim TwipsX    As Single
  Dim TwipsY    As Single
  
  ' Reset the return values
  OutputHeight = 0
  OutputWidth = 0
  
  ' Make sure the parameters passed are valid
  If InputHeight = 0 And InputWidth = 0 Then Exit Function
  
  ' If the user specifies to do the convertion for a Visual Basic Picture, use the
  ' "Screen" object to get the approximate TwipsPerPixel
  If VB_Picture = True Then
    OutputHeight = CLng(((InputHeight * Screen.TwipsPerPixelY) / 1440) * 2540)
    OutputWidth = CLng(((InputWidth * Screen.TwipsPerPixelX) / 1440) * 2540)
    
  ' If the user doesn't specify to do the convertion for a Visual Basic Picture, assume
  ' it's for a Win32 API call and calculate the exact TwipsPerPixel to be more accurate
  Else
    If GetDisplayInfo(, , TwipsX, TwipsY) = False Then Exit Function
    OutputHeight = CLng(((InputHeight * TwipsX) / 1440) * 2540)
    OutputWidth = CLng(((InputWidth * TwipsY) / 1440) * 2540)
  End If
  
  ' Function succeeded
  Convert_PX_HM = True
  
End Function


'========================================================================================================
'
' CopyPicture
'
' This function takes the handle to the picture passed in via the "IN_hPicture" parameter and makes a
' copy of it... returning it via the "OUT_hPicture" parameter.
'
' Parameter:              Use:
' --------------------------------------------------
' IN_hPicture             Specifies the handle to the picture to copy
' OUT_hPicture            Returns the newly created copy of the original picture
' PictureType             Optional. Specifies the type of image to copy (Bitmap, Icon, Cursor, Enh Metafile)
' PictureWidth            Optional. Specifies the width of the image to copy.  If this is not specified,
'                         this function attempts to get the width from the image.
' PictureHeight           Optional. Specifies the height of the image to copy.  If this is not specified,
'                         this function attempts to get the height from the image.
' ReturnMonochrome        Optional. If set to TRUE, the return is a black and white version of the image
'
' Return:
' -------
' If the function succeeds, the return is TRUE
' If the function fails, the return is FALSE
'
'========================================================================================================
Public Function CopyPicture(ByVal IN_hPicture As Long, _
                            ByRef OUT_hPicture As Long, _
                            Optional ByVal PictureType As PictureTypes = IMAGE_BITMAP, _
                            Optional ByVal PictureWidth As Long, _
                            Optional ByVal PictureHeight As Long, _
                            Optional ByVal ReturnMonochrome As Boolean = False) As Boolean
  
  Dim TempEMH      As ENHMETAHEADER
  Dim TempBITMAP   As BITMAP
  Dim hBMP_Mask    As Long
  Dim hBMP_Image   As Long
  Dim ReturnValue  As Long
  Dim Flags        As Long
  
  ' Set the default return value
  OUT_hPicture = 0
  
  ' Make sure parameters passed are valid
  If IN_hPicture = 0 Then Exit Function
  
  ' Get the dimentions and type of picture to copy
  If PictureWidth = 0 Or PictureHeight = 0 Then
    Select Case PictureType
      
      Case IMAGE_BITMAP
        If GetObjectAPI(IN_hPicture, Len(TempBITMAP), TempBITMAP) = 0 Then Exit Function
        PictureWidth = TempBITMAP.bmWidth
        PictureHeight = TempBITMAP.bmHeight
        
      Case IMAGE_ICON, IMAGE_CURSOR
        If GetIconBitmaps(IN_hPicture, hBMP_Mask, hBMP_Image) = False Then Exit Function
        ReturnValue = GetObjectAPI(hBMP_Image, Len(TempBITMAP), TempBITMAP)
        DeleteObject hBMP_Mask
        DeleteObject hBMP_Image
        If ReturnValue = 0 Then Exit Function
        PictureWidth = TempBITMAP.bmWidth
        PictureHeight = TempBITMAP.bmHeight
        
      Case IMAGE_ENHMETAFILE
        TempEMH.nSize = Len(TempEMH)
        TempEMH.iType = EMR_HEADER
        TempEMH.dSignature = ENHMETA_SIGNATURE
        TempEMH.nVersion = &H10000
        If GetEnhMetaFileHeader(IN_hPicture, Len(TempEMH), TempEMH) = 0 Then Exit Function
        PictureWidth = TempEMH.rclBounds.Right
        PictureHeight = TempEMH.rclBounds.Bottom
        
    End Select
  End If
  
  ' Copy the image
  If ReturnMonochrome = True Then Flags = LR_MONOCHROME
  OUT_hPicture = CopyImage(IN_hPicture, CLng(PictureType), PictureWidth, PictureHeight, Flags)
  If OUT_hPicture <> 0 Then CopyPicture = True
  
End Function


'========================================================================================================
'
' CreateCursorFromBMP
'
' This function takes the handle to the mask and image BITMAPS that make up an cursor, and combine them
' to make a transparent icon.
'
' Parameter:              Use:
' --------------------------------------------------
' hBMP_Mask               Handle to the mask BITMAP to use
' hBMP_Image              Handle to the image BITMAP to use
'
' Return:
' -------
' If the function succeeds, the return is the handle to the newly created icon
' If the function fails, the return is ZERO (0)
'
'========================================================================================================
Public Function CreateCursorFromBMP(ByVal hBMP_Mask As Long, _
                                    ByVal hBMP_Image As Long, _
                                    Optional ByVal HotspotX As Long, _
                                    Optional ByVal HotspotY As Long) As Long
  
  Dim TempICONINFO As ICONINFO
  
  If hBMP_Mask = 0 Or hBMP_Image = 0 Then Exit Function
  
  TempICONINFO.fIcon = 0
  TempICONINFO.hbmMask = hBMP_Mask
  TempICONINFO.hbmColor = hBMP_Image
  TempICONINFO.xHotspot = HotspotX
  TempICONINFO.yHotspot = HotspotY
  
  CreateCursorFromBMP = CreateIconIndirect(TempICONINFO)
  
End Function


'========================================================================================================
'
' CreateIconFromBMP
'
' This function takes the handle to the mask and image BITMAPS that make up an icon, and combine them
' to make a transparent icon.
'
' Parameter:              Use:
' --------------------------------------------------
' hBMP_Mask               Handle to the mask BITMAP to use
' hBMP_Image              Handle to the image BITMAP to use
'
' Return:
' -------
' If the function succeeds, the return is the handle to the newly created icon
' If the function fails, the return is ZERO (0)
'
'========================================================================================================
Public Function CreateIconFromBMP(ByVal hBMP_Mask As Long, _
                                  ByVal hBMP_Image As Long) As Long
  
  Dim TempICONINFO As ICONINFO
  
  If hBMP_Mask = 0 Or hBMP_Image = 0 Then Exit Function
  
  TempICONINFO.fIcon = 1
  TempICONINFO.hbmMask = hBMP_Mask
  TempICONINFO.hbmColor = hBMP_Image
  
  CreateIconFromBMP = CreateIconIndirect(TempICONINFO)
  
End Function


'========================================================================================================
'
' CreateMask
'
' This function takes the specified picture and creates a sprite and a mask from it.  The sprite is the
' same as the original picture, but the color that is specified by the "TransparentColor" parameter is
' changed to WHITE (this serves to designate where the transparency will be).  The mask is a black
' silhouette of the original picture with a white background.
'
' When the mask is combined with another picture using the Win32 "BitBlt" API with the "MERGEPAINT"
' raster operation, it puts a white silhouette of the original picture (without the transparent region).
' When the sprite is combined with the picture that the mask was combined with in the same location
' as the mask using the Win32 "BitBlt" API with the "SRCAND" raster operation, the original picture is
' displayed on the picture as a transparent picture (the specified background color, or transparent
' color no longer shows up.
'
' 

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人av自拍| eeuss鲁片一区二区三区在线看| 精品国产乱子伦一区| 91老师片黄在线观看| 日本女人一区二区三区| 亚洲少妇中出一区| 日韩欧美在线123| 日本乱人伦一区| 黑人精品欧美一区二区蜜桃| 亚洲综合免费观看高清在线观看| 精品国产免费久久| 欧美色电影在线| 成人av集中营| 韩国欧美一区二区| 丝袜美腿亚洲综合| 国产精品成人免费在线| 精品国产免费人成在线观看| 欧美午夜影院一区| 91亚洲精品久久久蜜桃网站| 国精产品一区一区三区mba桃花 | 天天色天天爱天天射综合| 国产蜜臀97一区二区三区| 精品日韩欧美在线| 91精品国产美女浴室洗澡无遮挡| 91国产福利在线| 91香蕉视频mp4| 不卡在线观看av| 国产成人精品免费视频网站| 另类小说欧美激情| 蜜桃视频第一区免费观看| 亚洲h在线观看| 一区二区三区四区不卡在线| 中文字幕五月欧美| 国产精品日韩精品欧美在线| 国产日韩精品一区二区三区| 精品美女一区二区三区| 欧美一区二区在线免费播放| 欧美精品在线一区二区| 欧美日韩精品欧美日韩精品一| 色国产精品一区在线观看| 色综合久久综合网| 一本色道综合亚洲| 欧美伊人精品成人久久综合97| 在线免费视频一区二区| 欧美视频日韩视频| 欧美日韩亚洲综合一区| 欧美三区免费完整视频在线观看| 91成人免费在线| 91久久精品午夜一区二区| 91九色最新地址| 欧美日韩国产三级| 欧美一区二区三区在线视频| 欧美一区二区三区爱爱| 欧美成人精品1314www| 欧美tk—视频vk| 久久麻豆一区二区| 国产精品久久久久一区| 一区二区在线观看视频 | 亚洲狠狠爱一区二区三区| 亚洲成人久久影院| 日本三级亚洲精品| 国模大尺度一区二区三区| 成人免费av网站| 日本韩国一区二区三区视频| 欧美日韩精品免费| 26uuu亚洲综合色欧美| 国产精品传媒入口麻豆| 艳妇臀荡乳欲伦亚洲一区| 日本美女一区二区| 国产成人丝袜美腿| 欧美在线观看一区二区| 日韩视频免费直播| 欧美激情一区二区三区蜜桃视频 | 免费成人在线网站| 国产69精品一区二区亚洲孕妇| zzijzzij亚洲日本少妇熟睡| 欧洲亚洲国产日韩| 精品日韩在线观看| 亚洲精品免费播放| 九九视频精品免费| 色婷婷av一区二区三区之一色屋| 欧美午夜精品久久久| 中文字幕av一区 二区| 亚洲精品国产一区二区精华液 | 国产精品夜夜嗨| 色婷婷综合久久久久中文一区二区| 91精品国产综合久久蜜臀| 国产女人aaa级久久久级| 亚洲国产精品久久不卡毛片| 国产精品亚洲第一区在线暖暖韩国| 91网站最新网址| 日韩三区在线观看| 亚洲私人影院在线观看| 老司机午夜精品| 91国产精品成人| 国产精品一级片在线观看| 美女mm1313爽爽久久久蜜臀| 99久久精品免费观看| 精品人伦一区二区色婷婷| 亚洲精品美国一| 粉嫩av一区二区三区粉嫩 | 久久久久久99精品| 丝袜国产日韩另类美女| 东方欧美亚洲色图在线| 精品国免费一区二区三区| 日韩欧美国产麻豆| 亚洲欧美日韩人成在线播放| 国产一区二区在线观看视频| 在线亚洲高清视频| 中日韩免费视频中文字幕| 免费成人av资源网| 在线观看不卡视频| 亚洲视频综合在线| 丁香一区二区三区| 久久久久久久综合狠狠综合| 日韩专区一卡二卡| 欧美三级视频在线观看| 中文字幕日韩欧美一区二区三区| 久久成人麻豆午夜电影| 宅男噜噜噜66一区二区66| 亚洲精品视频在线| 91蝌蚪porny九色| 中文字幕一区二区三区乱码在线| 懂色av一区二区三区免费看| 久久色在线观看| 激情综合网av| 久久众筹精品私拍模特| 免费高清不卡av| 日韩三级精品电影久久久| 日本成人中文字幕| 日韩一区二区三区视频| 免费成人美女在线观看.| 97se狠狠狠综合亚洲狠狠| 在线看不卡av| 中文字幕在线免费不卡| 国产69精品久久久久777| 2020国产精品自拍| 韩国av一区二区三区在线观看| 日韩欧美精品在线| 美女国产一区二区三区| 欧美变态凌虐bdsm| 国内精品嫩模私拍在线| 久久天天做天天爱综合色| 国产精品夜夜嗨| 国产农村妇女精品| 99视频热这里只有精品免费| 亚洲欧美日韩成人高清在线一区| 91网站最新地址| 亚洲一二三区视频在线观看| 欧美日韩美女一区二区| 日韩国产一二三区| 精品三级在线观看| 国产盗摄视频一区二区三区| 国产精品亲子乱子伦xxxx裸| 色综合一区二区三区| 亚洲福利一区二区三区| 日韩三级视频中文字幕| 国产高清久久久| 亚洲人亚洲人成电影网站色| 在线观看av一区| 蜜臀av性久久久久蜜臀aⅴ| 欧美zozo另类异族| 成人av资源网站| 日韩欧美激情一区| 日韩欧美一区二区视频| 久久97超碰国产精品超碰| 国产三级精品三级| 色综合天天综合网天天看片| 五月综合激情网| 337p日本欧洲亚洲大胆精品| 盗摄精品av一区二区三区| 亚洲免费三区一区二区| 欧美一区二视频| 成人激情图片网| 亚洲国产成人高清精品| 久久综合久久久久88| 99re这里只有精品6| 丝袜a∨在线一区二区三区不卡| 欧美videos中文字幕| 91一区在线观看| 免费在线观看一区二区三区| 欧美国产激情一区二区三区蜜月| 在线观看视频91| 国产麻豆视频精品| 亚洲午夜电影在线| 久久久99免费| 欧洲一区二区av| 国产精品资源在线看| 亚洲永久精品大片| 国产婷婷一区二区| 欧美二区三区91| 99视频国产精品| 极品美女销魂一区二区三区| 亚洲免费视频成人| 国产亚洲人成网站| 欧美一级淫片007| 色999日韩国产欧美一区二区| 国精产品一区一区三区mba桃花| 亚洲国产精品久久久男人的天堂| 国产日韩欧美精品一区|