Jump to content

Image transparency


Nova
 Share

Recommended Posts

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 )
Link to comment
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)

Link to comment
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 ?

Link to comment
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!
Link to comment
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 :)

Edited by nova
Link to comment
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. :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...