Jump to content

Question about GDIPlus


Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

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

Have a look to the great GDIp.au3 UDF by Authenticity! You will find a lot of GDI+ functions!

BR,

UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

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...