Sign in to follow this  
Followers 0
Nova

Image transparency

10 posts in this topic

Hey I woz just wondering if there is anyway to display an image with a certain percentage of transparency ?

Is there anyway of adding this feature to SplashImageOn ?

So if you wanted 20 percent transparency, something like this !

SplashImageOn ( "title", "file" , width , height , x pos , y pos , opt ,trans 20 )

Share this post


Link to post
Share on other sites



You need to look at winsettrans.


Who else would I be?

Share this post


Link to post
Share on other sites

You need to look at winsettrans.

<{POST_SNAPBACK}>

What version would that be in?

JS


AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Share this post


Link to post
Share on other sites

103 I think. Possibly sooner.


Who else would I be?

Share this post


Link to post
Share on other sites

I have just realised that SplashImageOn is very limited.

You can only have 1 image displayed on screen using SplashImageOn !

In order to display a second image the first muct be undisplayed !

Why is this ? and is there any chance that SplashImageOn can be altered to allow more that 1 image to be displayed on screen at once ?

Share this post


Link to post
Share on other sites

Try the gui.


Who else would I be?

Share this post


Link to post
Share on other sites

1) Goto this post and get the code for the function _GetImageSize

2) Add the following code below:

$file = "C:\Windows\Prairie Wind.bmp"

Global $WS_POPUP = 0x80000000, $WS_CAPTION = 0x00C00000, $WS_SYSMENU = 0x00080000
Global $WS_BORDER = 0x800000, $WS_DLGFRAME = 0x400000

$aSize = _GetImageSize($file)
If @error Then
   MsgBox(4096,"","Error...")
   Exit
EndIf

GuiCreate("Example One", $aSize[0], $aSize[1], 10, 10, 0)
GuiCtrlCreatePic($file, 0, 0, $aSize[0], $aSize[1])
GuiSetState()

GuiCreate("Example Two", $aSize[0], $aSize[1], 300, 300, $WS_POPUP)
GuiCtrlCreatePic($file, 0, 0, $aSize[0], $aSize[1])
GuiSetState()

Sleep(5000);show for 5 seconds...

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

Tnx CyberSlug nice example bit over my head at this moment in time seeing as Ive just updated to .103 and have never tryed any GUI creation before that was to be expected.

The current GUI commands at first glance dont appear to be all that userfriendly for lack of a better word. :)

I feel a bit out of my dept !

But im sure that as with all things, over time it shall become clearer.

Tnx for the push in the right direction :)

Edited by nova

Share this post


Link to post
Share on other sites

Tnx CyberSlug nice example bit over my head at this moment in time seeing as Ive just updated to .103 and have never tryed any GUI creation before that was to be expected.

The current GUI commands at first glance dont appear to be all that userfriendly for lack of a better word.  :)

I feel a bit out of my dept !

But im sure that as with all things, over time it shall become clearer.

Tnx for the push in the right direction  ;)

<{POST_SNAPBACK}>

Unless you propose something everybody like better the syntax of the Gui functions have a very probability to change.

Just propose the way you think Gui functions should be. :)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0