www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@xregGui/@SystemColors/convertToRGBTriplet.m
function val = convertToRGBTriplet(obj,val) %CONVERTTORGBTRIPLET Converts from IRGB integer to RGB triplet % % CONVERTTORGBTRIPLET(OBJ, IRGB) converts an int32 (m-by-n) array of IRGB % data into a uint8 (m-by-n-by-3) array of RGB triplets. % % An RGB triplet is three uint8 elements, e.g. [0 255 0] for green. The % IRGB form is used in Java. The highest order byte is intensity, % followed by bytes for red, green, blue. The return value from this % function ignores the intensity byte. % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. % This function has been implemented in a mex file