Jump to content

Recommended Posts

Posted

Hiya!

I have a question about GDIPlus (I guess).

Let's say I load a picture into my GUI as background image, is there a way to lowers its contrast?

I never used GDIPlus so I have no idea if that could help me.

Any help, tips, examples are appreciated. :idea:

AlmarM

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Posted

Contrast or transparency?

See exapmle for _WinAPI_AlphaBlend() from WinAPIEx.au3.

Something like this.

Posted ImagePosted Image

Also, why can't I just use "CTRL + A" in GUICtrlCreateEdit to select all? Is there anything like WM_SELECTALL ?

Woosh, fast replies ftw.

:idea:

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Posted (edited)

Use FreeImage.au3.

Also, why can't I just use "CTRL + A" in GUICtrlCreateEdit to select all? Is there anything like WM_SELECTALL?

No. Look at GUISetAccelerators() and _GUICtrlEdit_SetSel(). Edited by Yashied
Posted (edited)

If you want to "wash out" the image, there are any number of ways to do this. The easiest is obviously to modify the picture beforehand.

If you want to have it dynamic though, you should save a copy of the image to say the temp folder, in a location where you could open it again if the same image were selected.

A way you could do this is to enumerate all pixels (LockBits first, don't try using GetPixel and SetPixel, they are too slow) and simply slide them all toward black a bit. If you would like, I could whip up an example.

Edit: The FreeImage UDF would probably be faster. :idea:

Edited by Richard Robertson

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
×
×
  • Create New...