Adds a pixel index to the collection of pixel indices.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public void Add( byte pixelIndex )
Public Sub Add ( _ pixelIndex As Byte _ )
public: void Add( unsigned char pixelIndex )
Parameters
- pixelIndex (Byte)
- The index within a colour table of the colour of the pixel to add to the collection.
Remarks
This method is provided because the Add method of
Collection<(Of <(T>)>)
throws a misleading exception when the collection has been
instantiated with a fixed size, implying that the collection is
read-only rather than that items cannot be added to it.
Exceptions
Exception | Condition |
---|---|
NotSupportedException |
The collection was instantiated with a fixed size, therefore no new
items can be added to it.
|