StrToPixelType (replaces StrToDatatype)
The PixelTypeToStr function returns the pixel type number corresponding to the pixel type name. For example passing "float" returns 5.
number = StrToPixelType( string )
string is the pixel type name from the Pixel Types table.
numberis the pixel type code from the Pixel Types table.
The example below converts pixel type "float" to to its number:
|
-- pixel type "float" |
|
-- get the corresponding number |
|
-- result: name="float"type=5 |
PixelTypeToStr, CImage:SetPixelType, Pixel Types
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.