Gorgon
Show / Hide Table of Contents

Class GorgonCodecBmp

A codec to handle read/writing of BMP files.

Inheritance
object
GorgonImageCodec<IGorgonWicEncodingOptions, IGorgonWicDecodingOptions>
GorgonCodecWic<IGorgonWicEncodingOptions, IGorgonWicDecodingOptions>
GorgonCodecBmp
Implements
IGorgonImageCodec
IGorgonNamedObject
Inherited Members
GorgonCodecWic<IGorgonWicEncodingOptions, IGorgonWicDecodingOptions>.Codec
GorgonCodecWic<IGorgonWicEncodingOptions, IGorgonWicDecodingOptions>.CodecDescription
GorgonCodecWic<IGorgonWicEncodingOptions, IGorgonWicDecodingOptions>.SupportsBlockCompression
GorgonCodecWic<IGorgonWicEncodingOptions, IGorgonWicDecodingOptions>.SupportsMipMaps
GorgonCodecWic<IGorgonWicEncodingOptions, IGorgonWicDecodingOptions>.SupportsDepth
GorgonCodecWic<IGorgonWicEncodingOptions, IGorgonWicDecodingOptions>.SupportedPixelFormats
GorgonCodecWic<IGorgonWicEncodingOptions, IGorgonWicDecodingOptions>.Save(IGorgonImage, Stream)
GorgonCodecWic<IGorgonWicEncodingOptions, IGorgonWicDecodingOptions>.GetMetaData(Stream)
GorgonCodecWic<IGorgonWicEncodingOptions, IGorgonWicDecodingOptions>.GetMetaData(Stream, IGorgonWicDecodingOptions)
GorgonCodecWic<IGorgonWicEncodingOptions, IGorgonWicDecodingOptions>.GetFrameOffsets(string)
GorgonCodecWic<IGorgonWicEncodingOptions, IGorgonWicDecodingOptions>.GetFrameOffsets(Stream)
GorgonCodecWic<IGorgonWicEncodingOptions, IGorgonWicDecodingOptions>.IsReadable(Stream)
GorgonImageCodec<IGorgonWicEncodingOptions, IGorgonWicDecodingOptions>.SupportsMultipleFrames
GorgonImageCodec<IGorgonWicEncodingOptions, IGorgonWicDecodingOptions>.CanEncode
GorgonImageCodec<IGorgonWicEncodingOptions, IGorgonWicDecodingOptions>.CanDecode
GorgonImageCodec<IGorgonWicEncodingOptions, IGorgonWicDecodingOptions>.CodecCommonExtensions
GorgonImageCodec<IGorgonWicEncodingOptions, IGorgonWicDecodingOptions>.FromStream(Stream, long?)
GorgonImageCodec<IGorgonWicEncodingOptions, IGorgonWicDecodingOptions>.FromFile(string)
GorgonImageCodec<IGorgonWicEncodingOptions, IGorgonWicDecodingOptions>.Save(IGorgonImage, string)
GorgonImageCodec<IGorgonWicEncodingOptions, IGorgonWicDecodingOptions>.ToString()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: Gorgon.Graphics.Imaging.Codecs
Assembly: Gorgon.Graphics.Imaging.dll
Syntax
public sealed class GorgonCodecBmp : GorgonCodecWic<IGorgonWicEncodingOptions, IGorgonWicDecodingOptions>, IGorgonImageCodec, IGorgonNamedObject
Remarks

This codec will read and write lossless compressed files using the Windows Bitmap (BMP) format.

This codec supports the following pixel formats:

  • B8G8R8X8_UNorm
  • B8G8R8A8_UNorm (Has alpha channel support)
  • R8G8B8A8_UNorm (Alpha channel is ignored)
  • B5G6R5_UNorm

important

This codec requires the Windows Imaging Components (WIC) to be installed for the operating system.

Constructors

| Edit this page View Source

GorgonCodecBmp()

Initializes a new instance of the GorgonCodecBmp class.

Declaration
public GorgonCodecBmp()

Properties

| Edit this page View Source

SupportedPixelFormats

Property to return the supported pixel formats for this codec.

Declaration
public override IReadOnlyList<BufferFormat> SupportedPixelFormats { get; }
Property Value
Type Description
IReadOnlyList<BufferFormat>
Overrides
GorgonCodecWic<IGorgonWicEncodingOptions, IGorgonWicDecodingOptions>.SupportedPixelFormats

Implements

IGorgonImageCodec
IGorgonNamedObject

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author