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 / [SOLVED] Cropping sprites

Author
Message
marvin944
11
Years of Service
User Offline
Joined: 27th Aug 2013
Location:
Posted: 16th Jun 2018 12:55
What would be the easiest way to crop a sprite? Or before attaching the image to it, the image... I would love to have a crop command on images...

Marvin
Dutch

The author of this post has marked a post as an answer.

Go to answer

marvin944
11
Years of Service
User Offline
Joined: 27th Aug 2013
Location:
Posted: 16th Jun 2018 12:57
I should have done a search first Found sprite scissor! (but still, cropping original image would save memory)
Dutch
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 16th Jun 2018 14:17
you can loadup the original image, grab the area you want and unload the original.

a quick and crude example

Attachments

Login to view attachments
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 18th Jun 2018 14:51
This post has been marked by the post author as the answer.
agk have a CopyImage command
https://www.appgamekit.com/documentation/Reference/Image/CopyImage.htm
AGK (Steam) V2017.12.12 : Windows 10 Pro 64 Bit : NVIDIA (390.65) GeForce GTX 1050 Ti : Mac mini OS High Sierra (10.13)

Login to post a reply

Server time is: 2024-11-23 20:29:37
Your offset time is: 2024-11-23 20:29:37