summaryrefslogtreecommitdiff
path: root/tk/doc/FindPhoto.3
diff options
context:
space:
mode:
Diffstat (limited to 'tk/doc/FindPhoto.3')
-rw-r--r--tk/doc/FindPhoto.311
1 files changed, 6 insertions, 5 deletions
diff --git a/tk/doc/FindPhoto.3 b/tk/doc/FindPhoto.3
index 8cd20f2c534..1d6b5468aad 100644
--- a/tk/doc/FindPhoto.3
+++ b/tk/doc/FindPhoto.3
@@ -119,7 +119,7 @@ typedef struct {
int \fIheight\fR;
int \fIpitch\fR;
int \fIpixelSize\fR;
- int \fIoffset[3]\fR;
+ int \fIoffset[4]\fR;
} Tk_PhotoImageBlock;
.CE
The \fIpixelPtr\fR field points to the first pixel, that is, the
@@ -130,10 +130,10 @@ difference between two horizontally adjacent pixels. Often it is 3
or 4, but it can have any value. The \fIpitch\fR field specifies the
address difference between two vertically adjacent pixels. The
\fIoffset\fR array contains the offsets from the address of a pixel
-to the addresses of the bytes containing the red, green and blue
-components. These are normally 0, 1 and 2, but can have other values,
-e.g., for images that are stored as separate red, green and blue
-planes.
+to the addresses of the bytes containing the red, green, blue and alpha
+(transparency) components. These are normally 0, 1, 2 and 3, but can
+have other values, e.g., for images that are stored as separate red,
+green and blue planes.
.PP
The value given for the \fIwidth\fR and \fIheight\fR parameters to
\fBTk_PhotoPutBlock\fR do not have to correspond to the values specified
@@ -200,3 +200,4 @@ based on his earlier photo widget code.
.SH KEYWORDS
photo, image
+