I am trying to use the StrechBlt Function, but nothing happens.
Code:Option Explicit Private Declare Function StretchBlt Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal nSrcWidth As Long, ByVal nSrcHeight As Long, ByVal dwRop As Long) As Long Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long Private Sub Form_Load() picPreviewFront.Picture = frmMain.imgFront.Picture StretchBlt picPreviewFront.hdc, 12288, 7380, ScaleWidth, ScaleHeight, frmPreviewFront.hdc, 12288, 7380, picPreviewFront.ScaleWidth, picPreviewFront.ScaleHeight, vbSrcCopy End Sub Private Sub mnuFileRefresh_Click() Refresh End Sub




Reply With Quote