Implementation Summary:
MQL4
as of build 1065 does not support any specific graphic manipulation tools but allow to transform a specifically formatted bitmap-file to be later used via a so called RESOURCE.
0. no other but .BMP
file format is supported
1. no other but color depth of { 24 | 32 }
-bits is supported
2. no RGB-color-plane manipulation is available, so all preparations are to be performed externally to MQL4
( be it via a programmable tool like popular OpenCV or PIL modules in python, ImageMagick or manually via a bitmap manipulation editor )
3. no other but a file-interface is supported, so bitmap array-content must be pre-formatted and physically stored as a disk file in relative to a terminal_data_folder\MQL4\
so as to get loaded via ResourceReadImage()
4. some trivial pixel-array clipping is available in an extended format of ResourceCreate()
as an update on initially imported RESOURCE
5. if Alpha-channel ought be processed under [4]
, an option from { COLOR_FORMAT_ARGB_RAW | COLOR_FORMAT_ARGB_NORMALIZE }
-Color processing methods is to be used in
6. yet errors may appear { ERR_RESOURCE_UNSUPPORTED_TYPE | ... }
and ResetLastError(); ... GetLastError();
ought be used accordingly with further debugging details.
7. upon error-free progress up to [6]
, one may try to deploy the such prepared RESOURCE for use in an { OBJ_BITMAP_LABEL | OBJ_BITMAP }
graph-objects.
Given some previous experience with curious color-management artifacts with overlaying objects one atop another, with arbitrarily setup HSV-coded colours, the GUI results need not easily yield to an expected and/or pleasing visual composition ( in commercial projects my team has rather used an external, remote GUI-Display & MMI-Interactions Facility ( independent remote Trading Terminal with multi-windowed, fully independent, composable MVC-architecture ), that is under a full programmable-control, irrespective of MT4/MQL4 facilities both in Linux / Windows ecosystems ).
