Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1963)

Issue 4230041: Add SkBitmap::getColor(int x, int y). (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 7 months ago by Steve VanDeBogart
Modified:
13 years, 7 months ago
Reviewers:
reed1
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk
Visibility:
Public.

Description

Add SkBitmap::getColor(int x, int y) - return the color of a pixel in a bitmap. Committed: http://code.google.com/p/skia/source/detail?r=854

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -0 lines) Patch
M include/core/SkBitmap.h View 1 1 chunk +7 lines, -0 lines 2 comments Download
M src/core/SkBitmap.cpp View 1 2 chunks +52 lines, -0 lines 0 comments Download

Messages

Total messages: 5
Steve VanDeBogart
13 years, 7 months ago (2011-02-24 00:37:33 UTC) #1
reed1
Lets just call SkColorSetARGB instead of SkColorSetARGBMacro or SkColorSetARGBInline. I think both of those latter ...
13 years, 7 months ago (2011-02-24 17:45:39 UTC) #2
Steve VanDeBogart
Hmm, I didn't realize that bitmap configs with alpha where pre multiplied. It should be ...
13 years, 7 months ago (2011-02-24 19:27:36 UTC) #3
reed1
LGTM Lets consider a unittest for this call, either in BitmapCopyTest.cpp or in a new ...
13 years, 7 months ago (2011-02-24 22:18:43 UTC) #4
Steve VanDeBogart
13 years, 7 months ago (2011-02-24 22:52:07 UTC) #5
On 2011/02/24 22:18:43, reed1 wrote:
> LGTM

Thanks.

> Lets consider a unittest for this call, either in BitmapCopyTest.cpp or in a
new
> file. I'm OK to do that later (in another CL).

Sure, put it on my todo list.

http://codereview.appspot.com/4230041/diff/4001/include/core/SkBitmap.h
File include/core/SkBitmap.h (right):

http://codereview.appspot.com/4230041/diff/4001/include/core/SkBitmap.h#newco...
include/core/SkBitmap.h:407: for KNone_Config or if x or y are out of bounds.
On 2011/02/24 22:18:43, reed1 wrote:
> KNone -> kNone

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b