copyWithNormalized abstract method

  1. @override
P copyWithNormalized(
  1. P pixel, {
  2. double? red,
  3. double? green,
  4. double? blue,
})
override

Returns a copy of the pixel with normalized values.

Subclasses override this method to provide named parameters for channels.

Example

print(abgr8888.copyWithNormalized(0x12345678, red: 1.0)); // 0xFF345678
print(floatRgba.copyWithNormalized(Float32x4(0.1, 0.2, 0.3, 0.4), red: 0.5)); // [0.5, 0.2, 0.3, 0.4]

Implementation

@override
P copyWithNormalized(
  P pixel, {
  double? red,
  double? green,
  double? blue,
});