Open main menu

CDOT Wiki β

Changes

User:Minooz/OSD600/processing

91 bytes added, 15:41, 20 April 2011
Release 0.3
: Since the pixels were the same, seems like p5 has some difference in setting that shows the first underneath layer which is the background pixels in case of transparency of image. But browsers react differently. They display the pixels of window.
: The other strange issue was that chrome displays actually the color of the window as is defined in ''bgcolor'' whereas firefox just fills the transparent pixels with black color.
[[Image: pjs_background.png|50px 70px ]]- Chrome with green background for window <br/>[[Image: pjs_background_ff.png|50px 70px ]]- firefox with green background for window
*''' Final Solution'''
: So, we got nowhere in comparing these 2 together, so we decided to go around it and solve it with modifying REPLACE mode in blit_resize():
</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.
[[Image: pjs-ff.png|50px 70px ]]
* '''Helpful tips'''
1
edit