Closed boa2145 closed 3 months ago
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: @.***>
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: @.***>
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