Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21846

[RESOLVED] TransparentBlt - Does nothing

$
0
0
I'm using Windows XP/SP2 - VB6.0

On a Form I have two Pictureboxes, Picture1 and Picture2. The Form, Picture1, and Picture2 have their ScaleMode = vbPixels. Picture1 and Picture2 have their AutoRedraw = True. Picture1 has a multi-colored bitmap (red, blue, yellow, green, cyan, magenta) of circles. Picture2 has no bitmap.

The code line I run:

Code:

TransparentBlt _
  Picture2.hdc, _
  0, 0, _
  Picture1.ScaleWidth, _
  Picture1.ScaleHeight, _
  Picture1.hdc, _
  0, 0, _
  Picture1.ScaleWidth, _
  Picture1.ScaleHeight, _
  RGB(255, 0, 0)

Picture2 is not changed.

Am I using the function incorrectly or doe it simply not work?

Viewing all articles
Browse latest Browse all 21846

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>