dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Components

PixelBlock Class

An object representing the pixel arrays in the view.
ArcGIS Maps SDK for JavaScript

public class PixelBlock : dymaptic.GeoBlazor.Core.Components.MapComponent

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 PixelBlock

Constructors

PixelBlock() Constructor

Parameterless constructor for use as a Razor Component.

public PixelBlock();

PixelBlock(Nullable, Stream, Nullable, Stream, Nullable, IReadOnlyList, Nullable, Nullable) Constructor

Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.

public PixelBlock(System.Nullable<int> height=null, System.IO.Stream? mask=null, System.Nullable<bool> maskIsAlpha=null, System.IO.Stream? pixels=null, System.Nullable<dymaptic.GeoBlazor.Core.Enums.PixelType> pixelType=null, System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.PixelBlockStatistics>? statistics=null, System.Nullable<int> validPixelCount=null, System.Nullable<int> width=null);

Parameters

height System.Nullable<System.Int32>

The height (or number of rows) of the PixelBlock in pixels.
ArcGIS Maps SDK for JavaScript

mask System.IO.Stream

An array of nodata mask.
ArcGIS Maps SDK for JavaScript

maskIsAlpha System.Nullable<System.Boolean>

Indicates whether mask should be used as alpha values.
ArcGIS Maps SDK for JavaScript

pixels System.IO.Stream

A two dimensional array representing the pixels from the Image Service
displayed on the client.
ArcGIS Maps SDK for JavaScript

pixelType System.Nullable<PixelType>

The pixel type.
ArcGIS Maps SDK for JavaScript

statistics System.Collections.Generic.IReadOnlyList<PixelBlockStatistics>

An array of objects containing numeric statistical properties.
ArcGIS Maps SDK for JavaScript

validPixelCount System.Nullable<System.Int32>

Number of valid pixels.
ArcGIS Maps SDK for JavaScript

width System.Nullable<System.Int32>

The width (or number of columns) of the PixelBlock in pixels.
ArcGIS Maps SDK for JavaScript

Properties

PixelBlock.Height Property

The height (or number of rows) of the PixelBlock in pixels.
ArcGIS Maps SDK for JavaScript

public System.Nullable<int> Height { get; set; }

Property Value

System.Nullable<System.Int32>

PixelBlock.Mask Property

An array of nodata mask.
ArcGIS Maps SDK for JavaScript

public System.IO.Stream? Mask { get; set; }

Property Value

System.IO.Stream

PixelBlock.MaskIsAlpha Property

Indicates whether mask should be used as alpha values.
ArcGIS Maps SDK for JavaScript

public System.Nullable<bool> MaskIsAlpha { get; set; }

Property Value

System.Nullable<System.Boolean>

PixelBlock.Pixels Property

A two dimensional array representing the pixels from the Image Service
displayed on the client.
ArcGIS Maps SDK for JavaScript

public System.IO.Stream? Pixels { get; set; }

Property Value

System.IO.Stream

PixelBlock.PixelType Property

The pixel type.
ArcGIS Maps SDK for JavaScript

public System.Nullable<dymaptic.GeoBlazor.Core.Enums.PixelType> PixelType { get; set; }

Property Value

System.Nullable<PixelType>

PixelBlock.Statistics Property

An array of objects containing numeric statistical properties.
ArcGIS Maps SDK for JavaScript

public System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.PixelBlockStatistics>? Statistics { get; set; }

Property Value

System.Collections.Generic.IReadOnlyList<PixelBlockStatistics>

PixelBlock.ValidPixelCount Property

Number of valid pixels.
ArcGIS Maps SDK for JavaScript

public System.Nullable<int> ValidPixelCount { get; set; }

Property Value

System.Nullable<System.Int32>

PixelBlock.Width Property

The width (or number of columns) of the PixelBlock in pixels.
ArcGIS Maps SDK for JavaScript

public System.Nullable<int> Width { get; set; }

Property Value

System.Nullable<System.Int32>

Methods

PixelBlock.AddData(PixelBlockAddDataPlaneData) Method

Adds another plane to the PixelBlock.
param planeData.pixels An array representing the pixel data to add.
ArcGIS Maps SDK for JavaScript

public System.Threading.Tasks.Task AddData(dymaptic.GeoBlazor.Core.Model.PixelBlockAddDataPlaneData planeData);

Parameters

planeData PixelBlockAddDataPlaneData

The data to add to the PixelBlock.

  • planeData.statistics: An object containing numeric statistical properties.

Returns

System.Threading.Tasks.Task

PixelBlock.AddToStatistics(PixelBlockStatistics[]) Method

Asynchronously adds elements to the Statistics property.

public System.Threading.Tasks.Task AddToStatistics(params dymaptic.GeoBlazor.Core.Components.PixelBlockStatistics[] values);

Parameters

values PixelBlockStatistics[]

The elements to add.

Returns

System.Threading.Tasks.Task

PixelBlock.GetAsRGBA() Method

Returns pixels and masks using a single array in bip format
(e.g.
ArcGIS Maps SDK for JavaScript

public System.Threading.Tasks.Task<System.IO.Stream?> GetAsRGBA();

Returns

System.Threading.Tasks.Task<System.IO.Stream>

PixelBlock.GetAsRGBAFloat() Method

Similar to getAsRGBA, but returns floating point data.
ArcGIS Maps SDK for JavaScript

public System.Threading.Tasks.Task<float[]?> GetAsRGBAFloat();

Returns

System.Threading.Tasks.Task<System.Single[]>

PixelBlock.GetHeight() Method

Asynchronously retrieve the current value of the Height property.

public System.Threading.Tasks.Task<System.Nullable<int>> GetHeight();

Returns

System.Threading.Tasks.Task<System.Nullable<System.Int32>>

PixelBlock.GetMask() Method

Asynchronously retrieve the current value of the Mask property.

public System.Threading.Tasks.Task<System.IO.Stream?> GetMask();

Returns

System.Threading.Tasks.Task<System.IO.Stream>

PixelBlock.GetMaskIsAlpha() Method

Asynchronously retrieve the current value of the MaskIsAlpha property.

public System.Threading.Tasks.Task<System.Nullable<bool>> GetMaskIsAlpha();

Returns

System.Threading.Tasks.Task<System.Nullable<System.Boolean>>

PixelBlock.GetPixels() Method

Asynchronously retrieve the current value of the Pixels property.

public System.Threading.Tasks.Task<System.IO.Stream?> GetPixels();

Returns

System.Threading.Tasks.Task<System.IO.Stream>

PixelBlock.GetPixelType() Method

Asynchronously retrieve the current value of the PixelType property.

public System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.PixelType>> GetPixelType();

Returns

System.Threading.Tasks.Task<System.Nullable<PixelType>>

PixelBlock.GetPlaneCount() Method

Returns the plane band count of the PixelBlock.
ArcGIS Maps SDK for JavaScript

public System.Threading.Tasks.Task<System.Nullable<int>> GetPlaneCount();

Returns

System.Threading.Tasks.Task<System.Nullable<System.Int32>>

PixelBlock.GetStatistics() Method

Asynchronously retrieve the current value of the Statistics property.

public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.PixelBlockStatistics>?> GetStatistics();

Returns

System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<PixelBlockStatistics>>

PixelBlock.GetValidPixelCount() Method

Asynchronously retrieve the current value of the ValidPixelCount property.

public System.Threading.Tasks.Task<System.Nullable<int>> GetValidPixelCount();

Returns

System.Threading.Tasks.Task<System.Nullable<System.Int32>>

PixelBlock.GetWidth() Method

Asynchronously retrieve the current value of the Width property.

public System.Threading.Tasks.Task<System.Nullable<int>> GetWidth();

Returns

System.Threading.Tasks.Task<System.Nullable<System.Int32>>

PixelBlock.RemoveFromStatistics(PixelBlockStatistics[]) Method

Asynchronously remove an element from the Statistics property.

public System.Threading.Tasks.Task RemoveFromStatistics(params dymaptic.GeoBlazor.Core.Components.PixelBlockStatistics[] values);

Parameters

values PixelBlockStatistics[]

The elements to remove.

Returns

System.Threading.Tasks.Task

PixelBlock.SetHeight(Nullable) Method

Asynchronously set the value of the Height property after render.

public System.Threading.Tasks.Task SetHeight(System.Nullable<int> value);

Parameters

value System.Nullable<System.Int32>

The value to set.

Returns

System.Threading.Tasks.Task

PixelBlock.SetMask(Stream) Method

Asynchronously set the value of the Mask property after render.

public System.Threading.Tasks.Task SetMask(System.IO.Stream? value);

Parameters

value System.IO.Stream

The value to set.

Returns

System.Threading.Tasks.Task

PixelBlock.SetMaskIsAlpha(Nullable) Method

Asynchronously set the value of the MaskIsAlpha property after render.

public System.Threading.Tasks.Task SetMaskIsAlpha(System.Nullable<bool> value);

Parameters

value System.Nullable<System.Boolean>

The value to set.

Returns

System.Threading.Tasks.Task

PixelBlock.SetPixels(Stream) Method

Asynchronously set the value of the Pixels property after render.

public System.Threading.Tasks.Task SetPixels(System.IO.Stream? value);

Parameters

value System.IO.Stream

The value to set.

Returns

System.Threading.Tasks.Task

PixelBlock.SetPixelType(Nullable) Method

Asynchronously set the value of the PixelType property after render.

public System.Threading.Tasks.Task SetPixelType(System.Nullable<dymaptic.GeoBlazor.Core.Enums.PixelType> value);

Parameters

value System.Nullable<PixelType>

The value to set.

Returns

System.Threading.Tasks.Task

PixelBlock.SetStatistics(IReadOnlyList) Method

Asynchronously set the value of the Statistics property after render.

public System.Threading.Tasks.Task SetStatistics(System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.PixelBlockStatistics>? value);

Parameters

value System.Collections.Generic.IReadOnlyList<PixelBlockStatistics>

The value to set.

Returns

System.Threading.Tasks.Task

PixelBlock.SetValidPixelCount(Nullable) Method

Asynchronously set the value of the ValidPixelCount property after render.

public System.Threading.Tasks.Task SetValidPixelCount(System.Nullable<int> value);

Parameters

value System.Nullable<System.Int32>

The value to set.

Returns

System.Threading.Tasks.Task

PixelBlock.SetWidth(Nullable) Method

Asynchronously set the value of the Width property after render.

public System.Threading.Tasks.Task SetWidth(System.Nullable<int> value);

Parameters

value System.Nullable<System.Int32>

The value to set.

Returns

System.Threading.Tasks.Task

PixelBlock.ValidateRequiredGeneratedChildren() Method

Validates source-generated child components.

public override void ValidateRequiredGeneratedChildren();

Implements ValidateRequiredGeneratedChildren()