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 / Paste image on image with alpha using memblocks help

Author
Message
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 13th Feb 2018 11:17 Edited at: 13th Feb 2018 11:18
Hello, I have some code I copied from the forums a while back to paste one image onto another image using memblocks, but it doesn't seem to take alpha values into account.

Does anyone have "teh coadz" to do this, or know how to alter what I have to take alpha into account.

Here is the non-alpha version I have. (If you wrote it, then thanks, and who are you?!)

Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 13th Feb 2018 15:47 Edited at: 13th Feb 2018 16:38
Hey, I'm pretty sure there's something like that in my 'image functions' library. See my signature.
I'll check later when I'm back at my PC but I think I covered that.

[Edit]
OK, I checked and it looks like I didn't include that.
Not to worry here it is. Well two versions actually. The first one uses sprites and GetImage() and the second uses memblocks.


And if you don't have the rest of my image functions included then you'll also need this function:
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 13th Feb 2018 17:16
Quote: "Hey, I'm pretty sure there's something like that in my 'image functions' library."

There very well may be, , but the code I already had is missing the 'MyResize' function.
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 13th Feb 2018 17:20
Oh?
here it is:


That was just a quick fix before the (now standard) ResizeImage()
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 13th Feb 2018 17:28
Cheers, I'll give it a try later.

Login to post a reply

Server time is: 2024-11-24 02:38:01
Your offset time is: 2024-11-24 02:38:01