Hi,
I almost got this working...but i may have a problem with the statement sequence:
This code puts a smaller blue rect on a green rect (on a panel with the same size)
If i start with cvs.initialize(pnl), the .getpixel actually produces the right results (blue and green),BUT... i see no drawing.
if i put cvs.initialize(pnl) where the xxxxxx are, i see the drawing, but the getpixel gives zeros instead of the colors.
.......
cvs.Initialize(pnl)
bmp.InitializeMutable(780dip, 440dip)
cvs.Initialize2(bmp)
'xxxxxxxxxxx
cvs.DrawColor(Colors.Green)
Dim rect1 As Rect
rect1.Initialize(195dip,210dip, 585dip,310dip)
cvs.DrawRect(rect1, Colors.blue, True, 0)
pnl.Invalidate
I've tried multiple combinations, but either i get the pixels, or the drawing, i would like both at the same time
Paul