Scripts: Demo_BitmapOffset (OBJPROP_XOFFSET and OBJPROP_YOFFSET)

 

Demo_BitmapOffset (OBJPROP_XOFFSET and OBJPROP_YOFFSET):

If you need to show just a part of the image at the moment and hide other, you can use the moving window by specifying the visible area of the image.

This is an example of use of the OBJPROP_XOFFSET and OBJPROP_YOFFSET properties. See video: https://www.mql5.com/en/forum/3509/page1#comment_55145.

This feature will allow you to use the image with a set of several images (like CSS-sprites used in web).

Recommendations:

  • The use of the resources allows to serve all the necessary objects in a single .EX5 file.

Demo_BitmapOffset (OBJPROP_XOFFSET and OBJPROP_YOFFSET)

Author: MetaQuotes


Reason: