GetView Data Member Function

Returns a <Uint8ArrayView> that contains first and last iterators for the collection.

Prototype

Uint8ArrayView GetView()

Examples

Copy Text To Clipboard

import library "app_service_console_util.ssl";
import library "type_color_array_util.ssl";

auto Color src = new Color( 0, 0, 0, 0 );
auto Uint8ArrayView src_view = src.GetView();

auto Color fill = new Color( 0, 32, 128, 255 );
auto ColorArray dst = new ColorArray( 4, fill );

auto Uint8ArrayView dst_view = dst.GetView();

auto Uint8ArrayAlgorithms a_auAlgorithms;
a_auAlgorithms.Fill( src_view.First, src_view.Last, dst_view.First );

LibColorArray.Out2D( dst, 4, 4 );

Results

// 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