Women in Technology

Hear us Roar



Article:
  Bitmap Image Filters
Subject:   ah you had given me support by giving me a problem to solve
Date:   2002-08-10 10:16:59
From:   psheldon
Response to: handle alpha channel?

I do need some (easy) problems.


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.

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • friend Dan Van Bose in Fort Worth explained syntax
    2002-08-11 14:40:41  psheldon [View]

    c = boolean ? a : b

    c evaluates to first symbol after ? if boolean true and second expression if false.

    So, this sentence commands skipping by an offset if Alpha is there and mixing 3 colors only.

    I understand now.