Jump to content

Display PNG with a custom size


Recommended Posts

hi guys ,

Here is my problem : In the autoit folder search for ShowPNG.au3. It displays a transparent PNG named Torus.PNG (I don't really know what a Torus is). Anyway, I wanna display this PNG with a custom size as we can do with JPGs. Help me out! this is giving me nightmares.

Edited by farhadrahman2
Link to comment
Share on other sites

I don't know what you mean by a custom size.

Size (noun): the relative extent of something; a thing's overall dimensions or magnitude; how big something is.

Do you mean you want the png to be displayed bigger or smaller? You could first convert the png to a jpg/bmp file and use it that way. Another option is to use GDI+ to load the image as a HBitmap object then use

_WinAPI_DeleteObject(GUICtrlSendMsg(ID of your pic control, $STM_SETIMAGE, $IMAGE_BITMAP, Handle to your HBitmap object))

 

Link to comment
Share on other sites

22 hours ago, farhadrahman2 said:

hi guys ,

Here is my problem : In the autoit folder search for ShowPNG.au3. It displays a transparent PNG named Torus.PNG (I don't really know what a Torus is). Anyway, I wanna display this PNG with a custom size as we can do with JPGs. Help me out! this is giving me nightmares.

Checkout _GDIPlus_ImageScale / _GDIPlus_ImageResize in the help file.

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