Visual Basic (Declaration) | |
---|---|
Public ReadOnly Property Markers As RasterCollection(Of RasterMarkerMetadata) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public RasterCollection<RasterMarkerMetadata> Markers {get;} |
C++/CLI | |
---|---|
public: property RasterCollection<RasterMarkerMetadata>^ Markers { RasterCollection<RasterMarkerMetadata>^ get(); } |
Return Value
A collection of RasterMarkerMetadata used when reading and writing certain file formats (including JPEG).
Visual Basic | Copy Code |
---|---|
Public Sub MarkersExample() |
C# | Copy Code |
---|---|
public void MarkersExample() |
Several formats allow you to store non-image data such as comments, tags, and markers.
You can manipulate the markers of an image by adding/removing RasterMarkerMetadata objects to this collection.
By setting the CodecsSaveOptions.Markers property to true before calling RasterCodecs.Save, you can save the markers in this collection when the image is saved into a file.
By setting the CodecsLoadOptions.Markers property to true before calling RasterCodecs.Load, you can load all the markers (if any) into this collection when an image is loaded from a file.
You can use the RasterCodecs.ReadMarkers method to load the markers directly from an existing file and the RasterCodecs.WriteMarkers method to save the markers to an existing file.
For more information, refer to Non Image Data.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family