Types and Constants
Number Types
![](https://felmi-zfe.at/wp-content/uploads/2023/01/Number_Types-1.jpg)
Image Types
![](https://felmi-zfe.at/wp-content/uploads/2023/01/Image_Types.jpg)
Notes (using GMS 1.9.1.1080):
1) What is returned from TagGroupGetTagType(taggroup, index, 2).
2) These image types cannot be created using the TryToUse(…) function.
3) These image types cannot be saved as an image: “ImageData::GetTagType error : cannot convert to ‚TagType’”
4) When trying to open these images they will appear in DM; however, an error message will pop up: “The indicated data type does not exist.”
Tag Types
![](https://felmi-zfe.at/wp-content/uploads/2023/01/Tag_Types.jpg)
Component Types
![](https://felmi-zfe.at/wp-content/uploads/2023/01/Component_Types.jpg)
Component Control Points
![](https://felmi-zfe.at/wp-content/uploads/2023/01/Component_Control_Points.jpg)
1) ‘loc’ is the variable used in ComponentGetControlPoint(Component comp, Number loc, NumberVariable x, NumberVariable y). The numbered columns refer to the various component types (see above)
Dokument Windows
![](https://felmi-zfe.at/wp-content/uploads/2023/01/Document_Windows.jpg)
1) ‘type’ is the number returned from WindowGetType(DocumentWindow window).
Image Display
![](https://felmi-zfe.at/wp-content/uploads/2023/01/Image_Display.jpg)
1) ‘type’ is the number returned from ImageDisplayGetDisplayType(ImageDisplay imgDisp).
Calibration Format
The ‚CalibrationFormat‘ is an enum specifying how the origin and scale are combined to provide a transformation from calibrated to uncalibrated coordinates. In the following, ‚cal_val‘ is the calibrated value, ‚uncal_val‘ is the uncalibrated value, and ‚origin‘ and ’scale‘ are the parameters passed to or returned from the function.
![](https://felmi-zfe.at/wp-content/uploads/2023/01/Calibration_Format.jpg)
1) This format is used in the calibration dialog of the image display info.
Note, that the commands ImageGet/SetIntensityOrigin(…) and ImageGet/SetIntensityScale(…)behave like ‘CalibrationFormat’ = 1, whereas ImageGet/SetDimensionOrigin(…) and ImageGet/SetDimensionScale(…) behave like ‘CalibrationFormat’ = 0.
Format String
Format strings used in: string format(number num, string formatString)
![](https://felmi-zfe.at/wp-content/uploads/2023/01/Format_String.jpg)
Text Encoding
![](https://felmi-zfe.at/wp-content/uploads/2023/01/Text_Encoding.jpg)
Directories
The ‘dir_name’ parameter in the GetApplicationDirectory(…) and SetApplicationDirectory(…) commands.
![](https://felmi-zfe.at/wp-content/uploads/2023/01/Directories_update.jpg)
Component Drawing Mode
The ‘mode’ parameter in the ComponentGetDrawingMode(…) and ComponentSetDrawingMode(…) commands.
![](https://felmi-zfe.at/wp-content/uploads/2023/01/component_Drawing_Mode.jpg)