Skip to content

Commit

Permalink
Update color strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane32 committed Jun 1, 2024
1 parent 3d7453f commit eb880bf
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions QRCoder/PostscriptQRCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public string GetGraphic(int pointsPerModule, Color darkColor, Color lightColor,
return this.GetGraphic(viewBox, darkColor, lightColor, drawQuietZones, epsFormat);
}

public string GetGraphic(int pointsPerModule, string? darkColorHex, string? lightColorHex, bool drawQuietZones = true, bool epsFormat = false)
public string GetGraphic(int pointsPerModule, string darkColorHex, string lightColorHex, bool drawQuietZones = true, bool epsFormat = false)
{
var viewBox = new Size(pointsPerModule * this.QrCodeData.ModuleMatrix.Count, pointsPerModule * this.QrCodeData.ModuleMatrix.Count);
return this.GetGraphic(viewBox, darkColorHex, lightColorHex, drawQuietZones, epsFormat);
Expand All @@ -36,9 +36,9 @@ public string GetGraphic(Size viewBox, bool drawQuietZones = true, bool epsForma
return this.GetGraphic(viewBox, Color.Black, Color.White, drawQuietZones, epsFormat);
}

public string GetGraphic(Size viewBox, string? darkColorHex, string? lightColorHex, bool drawQuietZones = true, bool epsFormat = false)
public string GetGraphic(Size viewBox, string darkColorHex, string lightColorHex, bool drawQuietZones = true, bool epsFormat = false)
{
return this.GetGraphic(viewBox, ColorTranslator.FromHtml(darkColorHex!), ColorTranslator.FromHtml(lightColorHex!), drawQuietZones, epsFormat);
return this.GetGraphic(viewBox, ColorTranslator.FromHtml(darkColorHex), ColorTranslator.FromHtml(lightColorHex), drawQuietZones, epsFormat);
}

public string GetGraphic(Size viewBox, Color darkColor, Color lightColor, bool drawQuietZones = true, bool epsFormat = false)
Expand Down
4 changes: 2 additions & 2 deletions QRCoder/QRCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ public Bitmap GetGraphic(int pixelsPerModule)
return this.GetGraphic(pixelsPerModule, Color.Black, Color.White, true);
}

public Bitmap GetGraphic(int pixelsPerModule, string? darkColorHtmlHex, string? lightColorHtmlHex, bool drawQuietZones = true)
public Bitmap GetGraphic(int pixelsPerModule, string darkColorHtmlHex, string lightColorHtmlHex, bool drawQuietZones = true)
{
return this.GetGraphic(pixelsPerModule, ColorTranslator.FromHtml(darkColorHtmlHex!), ColorTranslator.FromHtml(lightColorHtmlHex!), drawQuietZones);
return this.GetGraphic(pixelsPerModule, ColorTranslator.FromHtml(darkColorHtmlHex), ColorTranslator.FromHtml(lightColorHtmlHex), drawQuietZones);
}

public Bitmap GetGraphic(int pixelsPerModule, Color darkColor, Color lightColor, bool drawQuietZones = true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -850,9 +850,9 @@ namespace QRCoder
public string GetGraphic(int pointsPerModule, bool epsFormat = false) { }
public string GetGraphic(System.Drawing.Size viewBox, bool drawQuietZones = true, bool epsFormat = false) { }
public string GetGraphic(System.Drawing.Size viewBox, System.Drawing.Color darkColor, System.Drawing.Color lightColor, bool drawQuietZones = true, bool epsFormat = false) { }
public string GetGraphic(System.Drawing.Size viewBox, string? darkColorHex, string? lightColorHex, bool drawQuietZones = true, bool epsFormat = false) { }
public string GetGraphic(System.Drawing.Size viewBox, string darkColorHex, string lightColorHex, bool drawQuietZones = true, bool epsFormat = false) { }
public string GetGraphic(int pointsPerModule, System.Drawing.Color darkColor, System.Drawing.Color lightColor, bool drawQuietZones = true, bool epsFormat = false) { }
public string GetGraphic(int pointsPerModule, string? darkColorHex, string? lightColorHex, bool drawQuietZones = true, bool epsFormat = false) { }
public string GetGraphic(int pointsPerModule, string darkColorHex, string lightColorHex, bool drawQuietZones = true, bool epsFormat = false) { }
}
public static class PostscriptQRCodeHelper
{
Expand All @@ -864,7 +864,7 @@ namespace QRCoder
public QRCode(QRCoder.QRCodeData data) { }
public System.Drawing.Bitmap GetGraphic(int pixelsPerModule) { }
public System.Drawing.Bitmap GetGraphic(int pixelsPerModule, System.Drawing.Color darkColor, System.Drawing.Color lightColor, bool drawQuietZones = true) { }
public System.Drawing.Bitmap GetGraphic(int pixelsPerModule, string? darkColorHtmlHex, string? lightColorHtmlHex, bool drawQuietZones = true) { }
public System.Drawing.Bitmap GetGraphic(int pixelsPerModule, string darkColorHtmlHex, string lightColorHtmlHex, bool drawQuietZones = true) { }
public System.Drawing.Bitmap GetGraphic(int pixelsPerModule, System.Drawing.Color darkColor, System.Drawing.Color lightColor, System.Drawing.Bitmap? icon = null, int iconSizePercent = 15, int iconBorderWidth = 0, bool drawQuietZones = true, System.Drawing.Color? iconBackgroundColor = default) { }
}
public class QRCodeData : System.IDisposable
Expand Down
6 changes: 3 additions & 3 deletions QRCoderApiTests/net60-windows/QRCoder.approved.txt
Original file line number Diff line number Diff line change
Expand Up @@ -857,9 +857,9 @@ namespace QRCoder
public string GetGraphic(int pointsPerModule, bool epsFormat = false) { }
public string GetGraphic(System.Drawing.Size viewBox, bool drawQuietZones = true, bool epsFormat = false) { }
public string GetGraphic(System.Drawing.Size viewBox, System.Drawing.Color darkColor, System.Drawing.Color lightColor, bool drawQuietZones = true, bool epsFormat = false) { }
public string GetGraphic(System.Drawing.Size viewBox, string? darkColorHex, string? lightColorHex, bool drawQuietZones = true, bool epsFormat = false) { }
public string GetGraphic(System.Drawing.Size viewBox, string darkColorHex, string lightColorHex, bool drawQuietZones = true, bool epsFormat = false) { }
public string GetGraphic(int pointsPerModule, System.Drawing.Color darkColor, System.Drawing.Color lightColor, bool drawQuietZones = true, bool epsFormat = false) { }
public string GetGraphic(int pointsPerModule, string? darkColorHex, string? lightColorHex, bool drawQuietZones = true, bool epsFormat = false) { }
public string GetGraphic(int pointsPerModule, string darkColorHex, string lightColorHex, bool drawQuietZones = true, bool epsFormat = false) { }
}
public static class PostscriptQRCodeHelper
{
Expand All @@ -872,7 +872,7 @@ namespace QRCoder
public QRCode(QRCoder.QRCodeData data) { }
public System.Drawing.Bitmap GetGraphic(int pixelsPerModule) { }
public System.Drawing.Bitmap GetGraphic(int pixelsPerModule, System.Drawing.Color darkColor, System.Drawing.Color lightColor, bool drawQuietZones = true) { }
public System.Drawing.Bitmap GetGraphic(int pixelsPerModule, string? darkColorHtmlHex, string? lightColorHtmlHex, bool drawQuietZones = true) { }
public System.Drawing.Bitmap GetGraphic(int pixelsPerModule, string darkColorHtmlHex, string lightColorHtmlHex, bool drawQuietZones = true) { }
public System.Drawing.Bitmap GetGraphic(int pixelsPerModule, System.Drawing.Color darkColor, System.Drawing.Color lightColor, System.Drawing.Bitmap? icon = null, int iconSizePercent = 15, int iconBorderWidth = 0, bool drawQuietZones = true, System.Drawing.Color? iconBackgroundColor = default) { }
}
public class QRCodeData : System.IDisposable
Expand Down
4 changes: 2 additions & 2 deletions QRCoderApiTests/net60/QRCoder.approved.txt
Original file line number Diff line number Diff line change
Expand Up @@ -801,9 +801,9 @@ namespace QRCoder
public string GetGraphic(int pointsPerModule, bool epsFormat = false) { }
public string GetGraphic(System.Drawing.Size viewBox, bool drawQuietZones = true, bool epsFormat = false) { }
public string GetGraphic(System.Drawing.Size viewBox, System.Drawing.Color darkColor, System.Drawing.Color lightColor, bool drawQuietZones = true, bool epsFormat = false) { }
public string GetGraphic(System.Drawing.Size viewBox, string? darkColorHex, string? lightColorHex, bool drawQuietZones = true, bool epsFormat = false) { }
public string GetGraphic(System.Drawing.Size viewBox, string darkColorHex, string lightColorHex, bool drawQuietZones = true, bool epsFormat = false) { }
public string GetGraphic(int pointsPerModule, System.Drawing.Color darkColor, System.Drawing.Color lightColor, bool drawQuietZones = true, bool epsFormat = false) { }
public string GetGraphic(int pointsPerModule, string? darkColorHex, string? lightColorHex, bool drawQuietZones = true, bool epsFormat = false) { }
public string GetGraphic(int pointsPerModule, string darkColorHex, string lightColorHex, bool drawQuietZones = true, bool epsFormat = false) { }
}
public static class PostscriptQRCodeHelper
{
Expand Down

0 comments on commit eb880bf

Please sign in to comment.