doc clarification for make-argb
This commit is contained in:
parent
a8994c7261
commit
0196a6f97a
|
@ -112,14 +112,19 @@ This snipclass is used for saved cache image snips.}
|
||||||
[height exact-nonnegative-integer?])
|
[height exact-nonnegative-integer?])
|
||||||
argb?]{
|
argb?]{
|
||||||
|
|
||||||
Constructs a new argb value. The vector has four entries
|
Constructs a new argb value with the given width and height,
|
||||||
for each pixel, an alpha, red, green, and blue value. The
|
using the data in the vector. The vector has four entries
|
||||||
int specifies the width of the image; the height is the
|
for each pixel, an alpha, red, green, and blue value.
|
||||||
size of the vector, divided by 4, divided by the width.}
|
The pixels are specified in row-major order, so that the
|
||||||
|
pixel at location (x,y) comes from vector entry (4*(x+(width*y))).
|
||||||
|
}
|
||||||
|
|
||||||
@defproc[(argb-vector [argb argb?]) (vectorof (integer-in 0 255))]{
|
@defproc[(argb-vector [argb argb?]) (vectorof (integer-in 0 255))]{
|
||||||
|
|
||||||
Extracts the vector from @racket[argb].}
|
Extracts the vector from @racket[argb]. The resulting vector
|
||||||
|
has entries in row-major order, so that the data for the pixel
|
||||||
|
at (x,y) winds up in four vector entries beginning at
|
||||||
|
(4*(x+(width*y))).}
|
||||||
|
|
||||||
@defproc[(argb-width [argb argb?]) exact-nonnegative-integer?]{
|
@defproc[(argb-width [argb argb?]) exact-nonnegative-integer?]{
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user