FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Topics & Contributions
   Tools
(Moderator: REAS)
   bitmaps with alpha channel
« Previous topic | Next topic »

Pages: 1 2 
   Author  Topic: bitmaps with alpha channel  (Read 4016 times)
fry

WWW
Re: bitmaps with alpha channel
« Reply #15 on: May 20th, 2003, 8:02pm »

with the current rev, you should be able to use those top 8 bits in each element of the pixels array to set the alpha for that part of the image.. that stuff should be incorporated, though it might be a little buggy. this only showed up within the last two or three releases, but (hopefully) should work reasonably well.
 
benelek

35160983516098 WWW Email
Re: bitmaps with alpha channel
« Reply #16 on: May 21st, 2003, 4:48am »

on May 20th, 2003, 3:29pm, REAS wrote:
what kind of alpha do you want integrated into the engine it's currently possible to make alpha polygons and images. it will be possible to have alpha lines in the near future.
 
are you wanting the different blending modes such as disolve, lightest, darkest, etc. to be added to the core

 
i'd like to be able to specify an image with an alpha map, and have p5 put them together. for instance, Code:
BImage theImg = loadImage(imgFile,alphaFile);

 
toxi

WWW
Re: bitmaps with alpha channel
« Reply #17 on: May 21st, 2003, 3:23pm »

fully agree with benelek about how images with alpha should be loaded, but if you're going to support alpha transparency in P5 why not go the full way and use PNG? AFAIK JDK1.4 introduced PNG support with the ImageIO class... but i'm not sure about the details (still new to it all myself)
 
re: blending modes - i think even if there won't be any built-in support for alpha channels i still plea for having additive and substractive blending as optional display flags for all drawing operations. there're many different uses for them and IMHO the gain definitely outweigths the cost of implementing them.
 
so if we have the option, then go casey!
 
BIG THANKS! toxi.
 

http://toxi.co.uk/
REAS


WWW
Re: bitmaps with alpha channel
« Reply #18 on: May 21st, 2003, 6:13pm »

I think these comments are great. Please post them within the suggestions section of the board so others see them in that context.  
 
All Processing code must be Java 1.1 compatible for browser compatibility. Java 1.4 is the future.
 
Just to keep things in perspective, there are other issues that we are tackling first like loading other fonts, antialiased lines, clipping, etc.
 
 
Mathatan

WWW
Re: bitmaps with alpha channel
« Reply #19 on: Jun 16th, 2003, 10:31pm »

I think that support for PNG-format would be quite usefull. It's ability use loseless packing for 24bit images is really usefull if the size doesn't matter. Also the 8bit alpha channel has some advantages against gifs 1bit.. =)  
 
Also it's free and has better support in GPL and such. But I think gif and jpg is sufficient for now and png support isn't really a priority.. =) After all as stated in this thread you can always use a seperate alphamap. Seperate alpha/mask-maps also give a lot of freedom for fx.
 
Ability link images as masks or layers adding the blending modes on the top of it would be cool. What more could you possibly ask for image handling? =)
 
Pages: 1 2 

« Previous topic | Next topic »