hi i completed my psd project in vb6 like this picture:


full size image link : https://cdn.pbrd.co/images/GLmxSDw.gif

but i hv optimize my code to better way like these :

i need a simple code to use (draw a simple line or pixel on hdc with gdi+ and then save as transparent png format) - i want just use module or class i dont want use activex

i am using draw pixel on hdc with SetPixelA like
Code:
SetPixelA theHdc, X + FLeft, Y + FTop, r, g, b, a but
i did try for save as png but saved with black background from hdc.

now i want a sample code or module for draw on hdc and save as transparent png (i dont need any gdi full sources or like this i need just simple code)