Jump to content
Sign in to follow this  
youknowwho4eva

GDI+ png resize question

Recommended Posts

youknowwho4eva

I'm playing with GDI+ some more, and I put a png on my gui using it. But I don't see any sizing options. I don't see a GDI+ imagesetsize or graphicsetsize either. Here's what I have

_gdiplus_startup()
$rbpill = _gdiplus_imageloadfromfile(@scriptdir & "/rb.png")
$graphic = _GDIPlus_GraphicsCreateFromHWND($dr)
_GDIPlus_GraphicsDrawImage($graphic,$rbpill,@desktopwidth/2,@desktopheight/2)

Giggity

Share this post


Link to post
Share on other sites
monoceres

Draw the image width _GDIPlus_DrawImageRect() instead :)


Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites
youknowwho4eva

Ahhh the pieces fall together much clearer now. Thank you. I think you'll like this one when I'm done. I have to do actual work right now, but I should be able to work on it after lunch.


Giggity

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  

×