hehehe i put the shadow working hehehe
what i did?
well i create a second array for put the shadow image and other for it's mask(for do the transparency) and works fine. and for draw it i can choose the place
, because, here, i don't use the Y coordenate
now i must complete my selection effect(is show 1 line arrow the image(image without backcolor).. like in games):
Code:
'Selection Color(needs more work)
If lngSelectionWidth <> 0 And lngSelectionColor <> lngBackColor Then
clrOldColor = RGBValues(lngBackColor)
TempColor = RGB(clrOldColor.Blue, clrOldColor.Green, clrOldColor.Red)
clrOldColor = RGBValues(lngSelectionColor)
TempColor1 = RGB(clrOldColor.Blue, clrOldColor.Green, clrOldColor.Red)
If (ChangedImage(X, Y) = TempColor And blnLeft = True) Then
For i = 1 To SelectionWidth
ChangedImage(X - i, Y) = TempColor1
MaskImage(X - i, Y) = vbBlack
Next i
blnLeft = False
ElseIf (ChangedImage(X, Y) <> TempColor And blnLeft = False) Then
For i = 1 To SelectionWidth
ChangedImage(X - i, Y) = TempColor1
MaskImage(X - i, Y) = vbBlack
Next i
blnLeft = True
End If
End If
these code works fine for X(left-right), but i don't know how can i put it working for Y(up-down).
any advices?