WildByDesign Posted October 12 Posted October 12 Creating a GUI with an image set across the background in AutoIt is quite easy. However, what if we had, for example, a GUI that is 600x600 pixels and we wanted to add an image that is 20x20 pixels and have that image repeat (tile) across that background of the GUI... This could be a 20x20 pixel image file or potentially, at least for the sake of any examples, this could be some sort of 20x20 gradient or something created with GDI+ and used as a tile. Is there any relatively easy way to achieve this? In this case, the GUI does not need to resize. I suppose it would be possible to manually add all of the coordinates since we know the measurements. However, I'm assuming that there is likely a more automated (and more efficient) way to do this that I am unaware of at the moment. Thank you for your time.
WildByDesign Posted October 12 Author Posted October 12 The end goal is to have a semi-transparent GUI in which this repeating blurred tile would give some sort of frosted glass effect. I will likely have to experiment with a bunch of different blurred tile images to figure out which looks the best. But it is the repeating/tiling stage of adding an image to the GUI background that I am stuck at.
Solution InnI Posted October 12 Solution Posted October 12 See example in helpfile for _GDIPlus_TextureCreate() Parsix and WildByDesign 2
WildByDesign Posted October 12 Author Posted October 12 15 minutes ago, InnI said: See example in helpfile for _GDIPlus_TextureCreate() This is absolutely perfect. Thank you.
WildByDesign Posted October 12 Author Posted October 12 By the way, this is a combination of Move window behind desktop icons and tiling an image on that GUI which is on top of the desktop wallpaper but below the desktop icons. Parsix 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now