sVB-Small-Visual-Basic icon indicating copy to clipboard operation
sVB-Small-Visual-Basic copied to clipboard

Gradual fade-in and fade-out of images ...

Open boa2145 opened this issue 1 year ago • 2 comments

Hello Mohammad,

I set an image into a window by using the method "DrawImage()" of the object "GraphicsWindow". Is it possible to fade-in and fade-out an image? It would be nice to show the image gradually from zero to hundred percent or the other way out.

Kind regards ... Gregor

boa2145 avatar Jan 30 '24 10:01 boa2145

Hi Gregor, Add a label over the image, make it fill the GW and give it the backcolor of the GW. Use the AnimateTransparency method to make the label 100% transparent after 3 seconds or more. This will do the trick.


From: Gregor @.> Sent: Tuesday, January 30, 2024 10:19 AM To: VBAndCs/sVB-Small-Visual-Basic @.> Cc: Subscribed @.***> Subject: [VBAndCs/sVB-Small-Visual-Basic] Gradual fade-in and fade-out of images ... (Issue #53)

Hello Mohammad,

I set an image into a window by using the method "DrawImage()" of the object "GraphicsWindow". Is it possible to fade-in and fade-out an image? It would be nice to show the image gradually from zero to hundred percent or the other way out.

Kind regards ... Gregor

— Reply to this email directly, view it on GitHubhttps://github.com/VBAndCs/sVB-Small-Visual-Basic/issues/53, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALQ5MVTJSDN2NWSEXAEWWO3YRDCLLAVCNFSM6AAAAABCQ672JGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEYDONBWGUYDANY. You are receiving this because you are subscribed to this thread.Message ID: @.***>

VBAndCs avatar Jan 30 '24 12:01 VBAndCs

Remember that the Controls.AddLabel returns the label so you can use it as an o next L = Controls.AddLabel(...) L.Width = GW.Width ......


From: Gregor @.> Sent: Tuesday, January 30, 2024 10:19 AM To: VBAndCs/sVB-Small-Visual-Basic @.> Cc: Subscribed @.***> Subject: [VBAndCs/sVB-Small-Visual-Basic] Gradual fade-in and fade-out of images ... (Issue #53)

Hello Mohammad,

I set an image into a window by using the method "DrawImage()" of the object "GraphicsWindow". Is it possible to fade-in and fade-out an image? It would be nice to show the image gradually from zero to hundred percent or the other way out.

Kind regards ... Gregor

— Reply to this email directly, view it on GitHubhttps://github.com/VBAndCs/sVB-Small-Visual-Basic/issues/53, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALQ5MVTJSDN2NWSEXAEWWO3YRDCLLAVCNFSM6AAAAABCQ672JGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEYDONBWGUYDANY. You are receiving this because you are subscribed to this thread.Message ID: @.***>

VBAndCs avatar Jan 30 '24 12:01 VBAndCs