Document bitmap transparency and public API
Explain image behavior for each credential tile version, package the README and XML documentation, and complete the public API comments.
This commit is contained in:
+1
@@ -101,6 +101,7 @@ namespace Lithnet.CredentialProvider.Samples
|
||||
|
||||
private static Bitmap CreateTransparentUserTile()
|
||||
{
|
||||
// CredentialTile3 preserves the alpha channel in this image. CredentialTile and CredentialTile2 render it against the control's BackgroundColor.
|
||||
Bitmap image = new Bitmap(128, 128, PixelFormat.Format32bppArgb);
|
||||
|
||||
using (Graphics graphics = Graphics.FromImage(image))
|
||||
|
||||
+3
@@ -5,6 +5,9 @@ using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace Lithnet.CredentialProvider.Samples
|
||||
{
|
||||
/// <summary>
|
||||
/// Demonstrates a version 3 credential tile that preserves image transparency.
|
||||
/// </summary>
|
||||
public class TestCredentialProviderTile : CredentialTile3
|
||||
{
|
||||
private TextboxControl UsernameControl;
|
||||
|
||||
Reference in New Issue
Block a user