Skip to content

Commit

Permalink
adds BGR and BGRA to ofImageTypeFromPixelFormat. closes openframework…
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemcdonald committed Jan 10, 2015
1 parent 6c75896 commit 3b5a62a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/openFrameworks/graphics/ofPixels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,11 @@ static ofImageType ofImageTypeFromPixelFormat(ofPixelFormat pixelFormat){
case OF_PIXELS_GRAY:
return OF_IMAGE_GRAYSCALE;
break;
case OF_PIXELS_BGR:
case OF_PIXELS_RGB:
return OF_IMAGE_COLOR;
break;
case OF_PIXELS_BGRA:
case OF_PIXELS_RGBA:
return OF_IMAGE_COLOR_ALPHA;
break;
Expand Down

0 comments on commit 3b5a62a

Please sign in to comment.