Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / ResizeImage()

Author
Message
Virtual Nomad
Moderator
18
Years of Service
Recently Online
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 3rd Jan 2020 18:18 Edited at: 3rd Jan 2020 18:19
am i doing something wrong, here?


i expect the scaled image to maintain the same aspect ratio, but:


I have had only 1 cup of coffee, so...

Attachments

Login to view attachments
smallg
Valued Member
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 3rd Jan 2020 18:31
think the problem is
Height# = GetImageWidth(Image1)
because the "height" and the width are the same in your code it is 1x1 ratio
life's one big game
spec= i5 4ghz, 16gb ram, Nvidia 1070ti gpu
Virtual Nomad
Moderator
18
Years of Service
Recently Online
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 3rd Jan 2020 18:43
no, the problem was:
Quote: "I have had only 1 cup of coffee"


thanks, smallg!
Loktofeit
AGK Developer
15
Years of Service
User Offline
Joined: 21st Jan 2009
Location: Sarasota, FL
Posted: 3rd Jan 2020 18:59 Edited at: 3rd Jan 2020 19:00

Width# = GetImageWidth(Image1)
Height# = GetImageHeight(Image1)

EDIT: nvm. refreshed and saw it was already answered. 15 mins ago

Login to post a reply

Server time is: 2024-03-29 15:47:48
Your offset time is: 2024-03-29 15:47:48