Skip to content

Commit 7077c40

Browse files
committed
fix issues
1 parent 15b0572 commit 7077c40

File tree

5 files changed

+28
-13
lines changed

5 files changed

+28
-13
lines changed

xml/System.Drawing.Imaging.Effects/BlurEffect.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@
6363
</ReturnValue>
6464
<Docs>
6565
<summary>
66-
<para>Gets a value that indicates whether the bitmap expands by an amount equal to the blur radius.</summary>
66+
Gets a value that indicates whether the bitmap expands by an amount equal to the blur radius.
67+
</summary>
6768
<value>
6869
<see langword="true" /> if the bitmap expands by an amount equal to the radius so that it can have soft edges. <see langword="false" /> if the bitmap remains the same size and the soft edges are clipped.
6970
</value>

xml/System.Drawing.Imaging.Effects/ColorMatrixEffect.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
<value>To be added.</value>
7575
<remarks>
7676
<para>
77-
<see cref="T:System.Drawing.Imaging.ColorMatrix" /> is mutable, but effects do not support changing the matrix after creation.</para>
77+
<see cref="T:System.Drawing.Imaging.ColorMatrix" /> is mutable, but effects do not support changing the matrix after creation.
7878
</para>
7979
</remarks>
8080
</Docs>

xml/System.Drawing.Imaging.Effects/LevelsEffect.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
</Parameters>
3838
<Docs>
3939
<param name="highlight">
40-
Integer in the range 0 through 100 that specifies which pixels should be lightened.</para>
40+
Integer in the range 0 through 100 that specifies which pixels should be lightened.
4141
</param>
4242
<param name="midtone">
4343
Integer in the range -100 through 100 that specifies how much to lighten or darken an image.

xml/System.Drawing.Imaging/DitherType.xml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,8 @@
144144
<Docs>
145145
<summary>
146146
Algorithm to perform dithering based on the colors in one of the standard fixed palettes.
147+
This algorithm can also be used to convert a bitmap to a 16-bits-per-pixel format that has no palette.
147148
</summary>
148-
<remarks>
149-
<para>
150-
This algorithm can also be used to convert a bitmap to a 16-bits-per-pixel format that has no palette.
151-
</para>
152-
</remarks>
153149
</Docs>
154150
</Member>
155151
<Member MemberName="Ordered8x8">

xml/System.Drawing/Bitmap.xml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -893,17 +893,35 @@
893893
<param name="alphaThresholdPercent">A real number in the range 0 through 100 that specifies which pixels in the source bitmap will map to the transparent color in the converted bitmap.</param>
894894
<summary>Converts the bitmap to the specified <paramref name="format" /> using the given <paramref name="ditherType" />. The original pixel data is replaced with the new format.</summary>
895895
<remarks>
896-
<para>For <paramref name="format" />, <see cref="F:System.Drawing.Imaging.PixelFormat.Format16bppGrayScale" /> is not supported.</para>
897-
<para>For <paramref name="ditherType" />, pass <see cref="F:System.Drawing.Imaging.DitherType.None" /> when the conversion does not reduce the bit depth of the pixel data. This must be <see cref="F:System.Drawing.Imaging.DitherType.Solid" /> or <see cref="F:System.Drawing.Imaging.DitherType.ErrorDiffusion" /> if the <paramref name="paletteType" /> is <see cref="F:System.Drawing.Imaging.PaletteType.Custom" /> or <see cref="F:System.Drawing.Imaging.PaletteType.FixedBlackAndWhite" />.</para>
896+
<para>
897+
For <paramref name="format" />, <see cref="F:System.Drawing.Imaging.PixelFormat.Format16bppGrayScale" /> is not supported.
898+
</para>
899+
<para>
900+
For <paramref name="ditherType" />, pass <see cref="F:System.Drawing.Imaging.DitherType.None" /> when the conversion does not reduce the bit depth of the pixel data.
901+
This must be <see cref="F:System.Drawing.Imaging.DitherType.Solid" /> or <see cref="F:System.Drawing.Imaging.DitherType.ErrorDiffusion" /> if the <paramref name="paletteType" /> is
902+
<see cref="F:System.Drawing.Imaging.PaletteType.Custom" /> or <see cref="F:System.Drawing.Imaging.PaletteType.FixedBlackAndWhite" />.
903+
</para>
898904
<para>
899905
<paramref name="paletteType" /> is ignored for non-indexed pixel formats.
900906
</para>
901-
<para>The <paramref name="palette" /> (called the actual palette) does not have to have the type specified by the <paramref name="paletteType" /> parameter. The <paramref name="paletteType" /> parameter specifies a standard palette that can be used by any of the ordered or spiral dithering algorithms. If the actual palette has a type other than that specified by the <paramref name="paletteType" /> parameter, then <see cref="M:System.Drawing.Bitmap.ConvertFormat(System.Drawing.Imaging.PixelFormat,System.Drawing.Imaging.DitherType,System.Drawing.Imaging.PaletteType,System.Drawing.Imaging.ColorPalette,System.Single)" /> performs a nearest-color conversion from the standard palette to the actual palette.</para>
902-
<para>For <paramref name="alphaThresholdPercent">, a value of 0 specifies that none of the source pixels map to the transparent color. A value of 100 specifies that any pixel that is not fully opaque will map to the transparent color. A value of t specifies that any source pixel less than t percent of fully opaque will map to the transparent color. Note that for the alpha threshold to be effective, the palette must have a transparent color. If the palette does not have a transparent color, pixels with alpha values below the threshold will map to color that most closely matches <c>(0, 0, 0, 0)</c>, usually black.</para>
907+
<para>
908+
The <paramref name="palette" /> (called the actual palette) does not have to have the type specified by the <paramref name="paletteType" /> parameter.
909+
The <paramref name="paletteType" /> parameter specifies a standard palette that can be used by any of the ordered or spiral dithering algorithms.
910+
If the actual palette has a type other than that specified by the <paramref name="paletteType" /> parameter,
911+
then <see cref="M:System.Drawing.Bitmap.ConvertFormat(System.Drawing.Imaging.PixelFormat,System.Drawing.Imaging.DitherType,System.Drawing.Imaging.PaletteType,System.Drawing.Imaging.ColorPalette,System.Single)" />
912+
performs a nearest-color conversion from the standard palette to the actual palette.
913+
</para>
914+
<para>
915+
For <paramref name="alphaThresholdPercent">, a value of 0 specifies that none of the source pixels map to the transparent color.
916+
A value of 100 specifies that any pixel that is not fully opaque will map to the transparent color.
917+
A value of t specifies that any source pixel less than t percent of fully opaque will map to the transparent color.
918+
Note that for the alpha threshold to be effective, the palette must have a transparent color. If the palette does not have a transparent color,
919+
pixels with alpha values below the threshold will map to color that most closely matches <c>(0, 0, 0, 0)</c>, usually black.
920+
</para>
903921
<para>
904922
<paramref name="paletteType" /> and <paramref name="palette" /> really only have relevance with indexed pixel formats. You can pass a <see cref="T:System.Drawing.Imaging.ColorPalette" /> for non-indexed pixel formats, but it has no impact on the transformation and will effective just call <see cref="P:System.Drawing.Image.Palette" /> to set the palette when the conversion is complete.
905923
</para>
906-
</remarks>
924+
</remarks>
907925
</Docs>
908926
</Member>
909927
<Member MemberName="FromHicon">

0 commit comments

Comments
 (0)