Binds iterators to this object.
int32 BindIterators( Uint8Iterator first, Uint8Iterator last )
Parameter Type | Parameter Name | Documentation |
---|---|---|
<Uint8Iterator> | first | An iterator to be bound at the start of this object's underlying collection. |
<Uint8Iterator> | last | A pointer to the iterator that represents the end of the range. |
import library "app_service_console_util.ssl";
import library "type_color_array_util.ssl";
auto Color src = new Color( 0, 32, 128, 255 );
auto Uint8Iterator src_first = src.First();
auto Color fill = new Color( 0, 0, 0, 0 );
auto ColorArray dst = new ColorArray( 4, fill );
auto Uint8Iterator dst_first;
auto Uint8Iterator dst_last;
dst.BindIterators( dst_first, dst_last );
auto Uint8ArrayAlgorithms a_auAlgorithms;
a_auAlgorithms.Fill( dst_first, dst_last, src_first );
LibColorArray.Out2D( dst, 4, 4 );
// Color is packed in BGRA order interally, so these results are correct.
128, 32, 0, 255,
128, 32, 0, 255,
128, 32, 0, 255,
128, 32, 0, 255