Convert RGB Vec3Int32 to an ARGB integer representation.
Definition at line 413 of file ColConvert.h. References Impala::Core::Array::Element::Vec3Int32::X(), Impala::Core::Array::Element::Vec3Int32::Y(), and Impala::Core::Array::Element::Vec3Int32::Z(). 00414 { 00415 int x = v.X(); 00416 if (x < 0) 00417 x = 0; 00418 else { 00419 if (x > 255) 00420 x = 255; 00421 } 00422 int y = v.Y(); 00423 if (y < 0) 00424 y = 0; 00425 else { 00426 if (y > 255) 00427 y = 255; 00428 } 00429 int z = v.Z(); 00430 if (z < 0) 00431 z = 0; 00432 else { 00433 if (z > 255) 00434 z = 255; 00435 } 00436 return (255 << 24) | (x << 16) | (y << 8) | z; 00437 }
Here is the call graph for this function:
|