You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: comtasks.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -205,7 +205,7 @@ <h2>
205
205
<p>
206
206
Use <ahref="image2.html#import_pixels">Image#import_pixels</a> to load pixel data from a string buffer into an image. The pixel data must be in scanline
207
207
order, right-to-left and top-to-bottom. The data can be packed as 8-bit bytes, 16-bit halfwords, 32-bit fullwords, or as C floats or doubles. The
208
-
reciprocal method is <ahref="image3.html#export_pixels_to_str">Image#export_pixels_to_str</a>.
208
+
reciprocal method is <ahref="image2.html#export_pixels_to_str">Image#export_pixels_to_str</a>.
209
209
</p>
210
210
211
211
<h2id="gray">Converting a color image to grayscale</h2>
Specify an image channel. A channel is a color component of a pixel. In the RGB colorspace the channels are red, green, and blue. There may also be an
325
325
alpha (transparency/opacity) channel. In the CMYK colorspace the channels area cyan, magenta, yellow, and black. In the HSL colorspace the channels are
326
326
hue, saturation, and lightness. In the Gray colorspace the only channel is gray. See
327
-
<ahref="image1.html#channel">Image#channel</a> and <ahref="info.html#channel">Image::Info#channel=</a>.
327
+
<ahref="image1.html#channel">Image#channel</a> and <ahref="info.html#channel">Image::Info#channel</a>.
<ahref="imageattrs.html#matte">matte</a>attribute is <code>true</code>, copy the opacity channel from the composite image to the target image.
637
-
Otherwise, set the target image pixel's opacity to the intensity of the corresponding pixel in the composite image.
636
+
<ahref="image1.html#alpha_q">alpha?</a> is <code>true</code>, copy the opacity channel from the composite image to the target image. Otherwise, set the
637
+
target image pixel's opacity to the intensity of the corresponding pixel in the composite image.
A <code>Pixel</code> object contains the numeric representation of a color. The <ahref="struct.html#Pixel.from_color">Pixel.from_color</a> method
271
271
converts a color name to a pixel. There are two methods to convert a pixel to a color name. The
272
272
<ahref="struct.html#Pixel.to_color">Pixel#to_color</a> method requires that you specify whether the alpha (opacity) channel is used, the depth (8 or 16)
273
-
and the color standard to use. The <ahref="image3.html#to_color">Image#to_color</a> method uses the image's depth and
274
-
<ahref="imageattrs.html#matte">matte</a>attributes. If <code>matte</code> is false the opacity value is ignored.
273
+
and the color standard to use. The <ahref="image3.html#to_color">Image#to_color</a> method uses the image's
274
+
<ahref="imageattrs.html#depth">depth</a>attribute and <ahref="image1.html#alpha">alpha</a> method.
275
275
</p>
276
276
277
277
<p><em>Hint:</em> You can specify the transparent color as "none", "transparent", "#00000000", or rgba(0, 0, 0, 0.0).</p>
@@ -361,7 +361,7 @@ <h2 id="classtype">DirectClass and PseudoClass</h2>
361
361
362
362
<p>
363
363
GIF format images are PseudoClass. JPEG format images are DirectClass. You can change the class of a image with the
0 commit comments