Results 1 to 40 of 59

Thread: [vb6] Class to make Image Controls Support PNG, TIF, GIF Animation

Threaded View

  1. #28
    Fanatic Member Black_Storm's Avatar
    Join Date
    Sep 2007
    Location
    any where
    Posts
    591

    Re: [vb6] Class to make Image Controls Support PNG, TIF, GIF Animation

    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 :
    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
    theHdc is same target hdc like form.hdc or picturebox.hdc ( not worked on image box)

    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?
    Name:  31330520b5eff8a33c1e9e6b2d0b696bd45930b9688d146ad10b8dd71d1eeb8d8f3967a4.jpg
Views: 1391
Size:  20.1 KB
    Last edited by Black_Storm; Sep 16th, 2017 at 01:06 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width