mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2026-11-12 05:28:14 +00:00
Fixed code issues
This commit is contained in:
1 parent
7b0e9152fd
commit
59e11e5b82
120 files changed
+1348
-342
No files matched your search
@@ -3,11 +3,15 @@ using RGB.NET.Core;
|
||||
|
||||
namespace RGB.NET.Presets.Textures.Sampler
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a sampled that averages multiple byte-data entries.
|
||||
/// </summary>
|
||||
public class AverageByteSampler : ISampler<byte>
|
||||
{
|
||||
#region Methods
|
||||
|
||||
public void SampleColor(in SamplerInfo<byte> info, in Span<byte> pixelData)
|
||||
/// <inheritdoc />
|
||||
public void Sample(in SamplerInfo<byte> info, in Span<byte> pixelData)
|
||||
{
|
||||
int count = info.Width * info.Height;
|
||||
if (count == 0) return;
|
||||
|
||||
@@ -3,11 +3,15 @@ using RGB.NET.Core;
|
||||
|
||||
namespace RGB.NET.Presets.Textures.Sampler
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a sampled that averages multiple float-data entries.
|
||||
/// </summary>
|
||||
public class AverageFloatSampler : ISampler<float>
|
||||
{
|
||||
#region Methods
|
||||
|
||||
public void SampleColor(in SamplerInfo<float> info, in Span<float> pixelData)
|
||||
/// <inheritdoc />
|
||||
public void Sample(in SamplerInfo<float> info, in Span<float> pixelData)
|
||||
{
|
||||
int count = info.Width * info.Height;
|
||||
if (count == 0) return;
|
||||
|
||||
Reference in new issue
Block a user