i hv a sample for read a special file format (PSD) - i dont want use png or tif or .... .
read pixels strcure is like this :
theHdc is same target hdc like form.hdc or picturebox.hdc ( not worked on image box)Code:For y = 0 To FHeight - 1 For x = 0 To FWidth - 1 r = ScanR(y * FWidth + x) g = ScanG(y * FWidth + x) b = ScanB(y * FWidth + x) a = ScanA2(y * FWidth + x) If a > layers(i).Opacity Then a = layers(i).Opacity SetPixelA theHdc, x + FLeft, y + FTop, r, g, b, a Next x If y Mod 32 = 0 Then FObject.Refresh: DoEvents Next y
1.how can show this data on image box too ?
2.how i can load this array in to ur class?(send a sample project pls)
and my other question :
i can show this array on picture box or form.picture but i want show on layerd window.
when i used like ur sent code (pvCreateLWdc and pvUpdateWindow and hdc was been set picturebox.hdc or form hdc) not worked good
3.how can show this array on layered window and can click or move dc?
![]()




Reply With Quote