From 1a9b10d6e46f8015c19a592ade346cb10b01b989 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Thu, 11 Aug 2016 23:50:00 -0400 Subject: [PATCH] Updated docs --- docs/en/SkiaSharp/SKBitmap.xml | 33 ++++++++++++------------------ docs/en/SkiaSharp/SKColorTable.xml | 28 +++++++++++++++---------- 2 files changed, 30 insertions(+), 31 deletions(-) diff --git a/docs/en/SkiaSharp/SKBitmap.xml b/docs/en/SkiaSharp/SKBitmap.xml index d54cd1a6..6d703c51 100644 --- a/docs/en/SkiaSharp/SKBitmap.xml +++ b/docs/en/SkiaSharp/SKBitmap.xml @@ -36,8 +36,7 @@ Default construct creates a bitmap with zero width and height, and no pixels. Its colortype is set to  This constructor does not allocate a backing store for the bitmap. - - + @@ -71,10 +70,10 @@ - To be added. - To be added. - To be added. - To be added. + Description of the desired image format. + Color lookup table + Constructor that configures the bitmap based on an  specification and a color table. + Use this method to create a bitmap that will use a color lookup table.   The bitmap will be an 8-bit indexed bitmap, where each value represents an index into the color table, and the color is determined by the value in the specific location in the color table array. @@ -92,8 +91,8 @@ - To be added. - To be added. + Description of the desired image format. + The number of bytes per row. Constructor that configures the bitmap based on an  specification, and the specified number of bytes per row (the stride size) This constructor might throw an exception if it is not possible to create a bitmap with the specified configuration (for example, the image info requires a color table, and there is no color table). @@ -120,8 +119,7 @@ Creates a bitmap with the given width, height and opacity with color type set to  This constructor might throw an exception if it is not possible to create a bitmap with the specified configuration (for example, the image info requires a color table, and there is no color table). - - + @@ -166,8 +164,7 @@ Returns the configured alpha type for the bitmap. - - + This determines the kind of encoding used for the alpha channel, opaque, premultiplied or unpremultiplied. @@ -304,8 +301,7 @@ Copies the contents of the bitmap and returns the copy. The copy of the bitmap, or on error. - - + @@ -854,8 +850,7 @@ Returns the address of the pixels for this SKBitmap Returns a pointer to the region that contains the pixel data for this bitmap.   This might return if there is no pixel buffer associated with this bitmap. - - + @@ -934,8 +929,7 @@ if it is immutable, otherwise. - - + @@ -1125,8 +1119,7 @@ Call this to balance a previous call to . When you are finished access the pixel memory, call this to balance a previous call to . This allows pixelrefs that implement cached/deferred image decoding to know when there are active clients of a given image. - - + diff --git a/docs/en/SkiaSharp/SKColorTable.xml b/docs/en/SkiaSharp/SKColorTable.xml index 88571327..8e650542 100644 --- a/docs/en/SkiaSharp/SKColorTable.xml +++ b/docs/en/SkiaSharp/SKColorTable.xml @@ -9,8 +9,14 @@ - To be added. - To be added. + Holds a color table for indexed 8-bit bitmaps. + + This class is used to represent a color lookup table for indexed bitmap images. + + The table can contain up to 256 colors (8 bits). + + The colors are stored are pre-multiplied 32-bit colors. + @@ -21,7 +27,7 @@ - To be added. + Creates a new emtpy color table with 256 emtpy elements. To be added. @@ -36,7 +42,7 @@ To be added. - To be added. + Creates a color table with the provided colors, up to 256 colors can be provided. To be added. @@ -51,7 +57,7 @@ To be added. - To be added. + Creates a color table with the specified number of elements, with empty colors. To be added. @@ -68,7 +74,7 @@ To be added. To be added. - To be added. + Creates a color table with the provided colors, but only consumes the first count elements from the colors array. To be added. @@ -82,7 +88,7 @@ SkiaSharp.SKColor[] - To be added. + Gets a copy of the colors in the color table. To be added. To be added. @@ -97,7 +103,7 @@ System.Int32 - To be added. + The number of colors in the lookup table. To be added. To be added. @@ -116,7 +122,7 @@ To be added. - To be added. + Use this to dispose this object by subclasses. To be added. @@ -131,7 +137,7 @@ 256 - To be added. + The maximum number of colors in the color lookup table. To be added. @@ -146,7 +152,7 @@ - To be added. + Returns an unmanaged pointer to the color lookup table. To be added. To be added.