CPicture or OBJ_BITMAP scaling to the Display Resolution

 

How can I scale the image according to Display Resolution? 

For text size and other object size I am using the scale factor  TerminalInfoInteger(TERMINAL_SCREEN_DPI), but the picture (CPicture or OBJ_BITMAP) does not scale if I change the width or height. Please help me.

 
Dmitry Zhakov :

How can I scale the image according to Display Resolution? 

For text size and other object size I am using the scale factor  TerminalInfoInteger(TERMINAL_SCREEN_DPI), but the picture (CPicture or OBJ_BITMAP ) does not scale if I change the width or height. Please help me.

For each resolution, you must first create your own picture.