mirror of https://github.com/SixLabors/ImageSharp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.0 KiB
43 lines
1.0 KiB
// Copyright (c) Six Labors and contributors.
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
using System;
|
|
using System.Numerics;
|
|
using SixLabors.ImageSharp.Memory;
|
|
|
|
namespace SixLabors.ImageSharp.Formats.Jpeg.PdfJsPort.Components
|
|
{
|
|
/// <summary>
|
|
/// Represents a component block
|
|
/// </summary>
|
|
internal class PdfJsComponent : IDisposable
|
|
{
|
|
#pragma warning disable SA1401
|
|
/// <summary>
|
|
/// Gets or sets the output
|
|
/// </summary>
|
|
public IBuffer<short> Output;
|
|
|
|
/// <summary>
|
|
/// Gets or sets the scaling factors
|
|
/// </summary>
|
|
public Vector2 Scale;
|
|
|
|
/// <summary>
|
|
/// Gets or sets the number of blocks per line
|
|
/// </summary>
|
|
public int BlocksPerLine;
|
|
|
|
/// <summary>
|
|
/// Gets or sets the number of blocks per column
|
|
/// </summary>
|
|
public int BlocksPerColumn;
|
|
|
|
/// <inheritdoc/>
|
|
public void Dispose()
|
|
{
|
|
this.Output?.Dispose();
|
|
this.Output = null;
|
|
}
|
|
}
|
|
}
|