h - 1) Then
         If (y &gt;= 0 And y &lt;= m_cAlphaLogo.Height - 1) Then
   
            ' check in alpha logo where we are:
            Dim tImage As SAFEARRAY2D
            Dim bImage() As Byte
            
            With tImage
               .cbElements = 1
               .cDims = 2
               .Bounds(0).lLbound = 0
               .Bounds(0).cElements = m_cAlphaLogo.Height
               .Bounds(1).lLbound = 0
               .Bounds(1).cElements = m_cAlphaLogo.BytesPerScanLine()
              