| Sign In/My Account | View Cart |
| Article: |
Bitmap Image Filters | |
| Subject: | handle alpha channel? | |
| Date: | 2002-08-09 17:19:22 | |
| From: | mikebeam | |
|
Response to: handle alpha channel?
|
||
|
That's part of the solution. The other part has to do with the alpha channel occupying the first 8 bits of a pixel, so you have to offset your red, green, and blue indices by 1. So i had something like the following in the inner for-loop:
|
||
Showing messages 1 through 2 of 2.
I don't get the syntax on right hand side of :
int ao = [srcImageRep hasAlpha] ? 1 : 0;
supposedly setting a0 to 1.
Are ? and : c operators and is this rhs c syntax?
My c pdf file from an old codewarrior has awful hypertexting.