Changes

Jump to: navigation, search

User:Minooz/OSD600/processing

363 bytes added, 16:08, 20 April 2011
Release 0.3
*''' Final Solution'''
: So, we got nowhere in comparing these 2 together, so we decided to go around it and solve it this waywith modifying REPLACE mode in blit_resize():
<source lang="java">
if (img.format !== PConstants.RGB && destPixels[(destOffset + x) * 4] !== 255) {
}
</source>
: The way it works, if the image format is RGB, that means, there is no transparency for any of pixels anyways, so it would continue as normal. If the format is ARGB, it'll check if there is any alpha that is 255, if yes, again the normal flow, if not, it will call the BLEND mode function, to blend the pixels with background.
* '''Helpful tips'''
1
edit

Navigation menu