J'essaye un kryptage d'image :
avec :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 PctCible.ScaleMode = 3 PctSource.ScaleMode = 3 PctCible.Height = PctSource.Height PctCible.Width = PctSource.Width LargC = PctCible.ScaleWidth HautC = PctCible.ScaleHeight For pixCx = 0 To LargC For pixCy = 0 To HautC Step 2 SetPixel PctCible.hDC, pixCx + 4, pixCy + 4, GetPixel(PctSource.hDC, pixCx, pixCy) Next pixCy DoEvents Next pixCx PctCible.Refresh
Private Declare Function SetPixel Lib "gdi32" (ByVal hDC As Long, ByVal x As Long, ByVal y As Long, ByVal crColor As Long) As Long
Private Declare Function GetPixel Lib "gdi32" (ByVal hDC As Long, ByVal x As Long, ByVal y As Long) As Long
quand je lance la procédure avec une image dans pctsource jai un voile vert qui passe sur le pctcible et puis rien de plus ???
Partager