dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Serialization
ImageDataSerializationRecord Class
Protobuf serialization record for ImageData.
public record ImageDataSerializationRecord : dymaptic.GeoBlazor.Core.Serialization.MapComponentSerializationRecord<dymaptic.GeoBlazor.Core.Model.ImageData>, System.IEquatable<dymaptic.GeoBlazor.Core.Serialization.ImageDataSerializationRecord>
Inheritance System.Object 🡒 MapComponentSerializationRecord 🡒 dymaptic.GeoBlazor.Core.Serialization.MapComponentSerializationRecord<ImageData> 🡒 ImageDataSerializationRecord
Implements System.IEquatable<ImageDataSerializationRecord>
Constructors
ImageDataSerializationRecord() Constructor
Default constructor for protobuf deserialization.
public ImageDataSerializationRecord();
ImageDataSerializationRecord(byte[], string, long, long) Constructor
Creates a new ImageDataSerializationRecord with the specified values.
public ImageDataSerializationRecord(byte[] data, string colorSpace, long height, long width);
Parameters
data System.Byte[]
colorSpace System.String
height System.Int64
width System.Int64
Properties
ImageDataSerializationRecord.ColorSpace Property
The color space of the image.
public string? ColorSpace { get; init; }
Property Value
ImageDataSerializationRecord.Data Property
The raw image data bytes.
public byte[]? Data { get; init; }
Property Value
ImageDataSerializationRecord.Height Property
The height of the image in pixels.
public long Height { get; init; }
Property Value
ImageDataSerializationRecord.IsNull Property
Indicates whether this record represents a null value.
public override bool IsNull { get; init; }
Property Value
ImageDataSerializationRecord.Width Property
The width of the image in pixels.
public long Width { get; init; }
Property Value
Methods
ImageDataSerializationRecord.FromSerializationRecord() Method
Converts this serialization record back to the original type.
public override dymaptic.GeoBlazor.Core.Model.ImageData? FromSerializationRecord();