Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Sign InSign Up

First independent community of traders

First independent community of traders Logo First independent community of traders Logo

First independent community of traders Navigation

  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • Buy Theme
  • Home
  • About Us
  • Blog
  • Contact Us

Share your knowledge in the forex community!

Our community is a completely independent place for communication between forex traders and software developers for trading platforms Metatrader 4 and Metatrader 5

Create A New Account
Home/ Questions/Q 1151
In Process
dken
dken

dken

  • 4 Questions
  • 12 Answers
  • 0 Best Answers
  • 32 Points
View Profile
  • 0
dken
Asked: December 18, 20202020-12-18T10:10:38+00:00 2020-12-18T10:10:38+00:00

Scaling the bmp image in the terminal.

  • 0

hello everyone, although i am a programmer with experience, but i really do not understand why simple functions for scaling images are not made, maybe
I don’t know something?

for example, there is a bmp image connected as a resource with a size of 500×500 pixels, you need to scale it to an arbitrary scale, for example to
200×200 and increase by 1000×1000 (but the size will change constantly, so the option to prepare several sizes at once is not suitable.

Give me a magic pendel to keep me digging in the right direction. canvas to disassemble or can there be ready-made library solutions in the
public domain, where there is already the necessary functionality? 

  • 6 6 Answers
  • 0 Followers
  • 0
Answer
Share
  • Facebook

    6 Answers

    • Voted
    • Oldest
    • Recent
    1. dken

      dken

      • 4 Questions
      • 12 Answers
      • 0 Best Answers
      • 32 Points
      View Profile
      dken
      2020-12-18T10:11:13+00:00Added an answer on December 18, 2020 at 10:11 am

      Nikolai Semko:

      In such cases, I use a simpler solution ( on the advice of fxsaber):

      oh thanks, I’m not so good at the nuances of oop. I’ll know now. I didn’t think that overriding protected is allowed. In C++, you can
      no longer use such techniques. (Visual c++ from version 11 is)

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    2. nikolay7ko

      nikolay7ko

      • 0 Questions
      • 3 Answers
      • 0 Best Answers
      • 26 Points
      View Profile
      nikolay7ko
      2020-12-22T07:02:03+00:00Added an answer on December 22, 2020 at 7:02 am

      Alexandr Gavrilin:

      The solution is working, adapted for mt4. Thank you. In mt4, there is no arrayswap function , so I added it in the standard canvas and had to m_pixels
      make it public. It is bad that initially no function was added that allows you to directly access this variable by index, only
      by x, y. But this can be solved simply by creating your own class with a similar name.

      In such cases, I use a simpler solution ( on the advice of fxsaber):

      #define protected public
      #include
      #undef protected

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    3. trendhunter

      trendhunter

      • 0 Questions
      • 22 Answers
      • 0 Best Answers
      • 66 Points
      View Profile
      trendhunter
      2020-12-22T07:02:04+00:00Added an answer on December 22, 2020 at 7:02 am

      Alexandr Gavrilin:

      The solution is working, adapted for mt4. Thank you. In mt4, there is no arrayswap function , so I added it in the standard canvas and had to m_pixels
      make it public. It is bad that initially no function was added that allows you to directly access this variable by index, only
      by x, y. But this can be solved simply by creating your own class with a similar name.

      Can’t this inclusion be made a resource?

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    4. dken

      dken

      • 4 Questions
      • 12 Answers
      • 0 Best Answers
      • 32 Points
      View Profile
      dken
      2020-12-18T10:10:53+00:00Added an answer on December 18, 2020 at 10:10 am

      Nikolai Semko:

      it’s A pity you can’t put likes here! Thank you so much, really cool solution and easy to use. Why don’t you put copyrights in the code
      ? 

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    5. nikolay7ko

      nikolay7ko

      • 0 Questions
      • 3 Answers
      • 0 Best Answers
      • 26 Points
      View Profile
      nikolay7ko
      2020-12-22T07:02:04+00:00Added an answer on December 22, 2020 at 7:02 am

      Alexandr Gavrilin:

      Hello everyone, although I am a programmer with experience, but I really do not understand why simple functions for scaling images are not made,
      maybe i don’t know something?

      for example, there is a bmp image connected as a resource with a size of 500×500 pixels, you need to scale it to an arbitrary scale, for example to
      200×200 and increase by 1000×1000 (but the size will change constantly, so the option to prepare several sizes at once is not
      fits.

      Give me a magic pendel to keep me digging in the right direction. Canvas parse or can have ready-made librariesreferences
      in the public domain, where there is already the necessary functionality? 

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    6. alexeyvik

      alexeyvik

      • 1 Question
      • 75 Answers
      • 0 Best Answers
      • 182 Points
      View Profile
      alexeyvik
      2020-12-18T10:10:42+00:00Added an answer on December 18, 2020 at 10:10 am

      Alexandr Gavrilin:

      Hello everyone, although I am a programmer with experience, but I really do not understand why simple functions for scaling images are not made,
      maybe i don’t know something?

      for example, there is a bmp image connected as a resource with a size of 500×500 pixels, you need to scale it to an arbitrary scale, for example to
      200×200 and increase by 1000×1000 (but the size will change constantly, so the option to prepare several sizes at once is not
      fits.

      Give me a magic pendel to keep me digging in the right direction. Canvas parse or can have ready-made librariesreferences
      in the public domain, where there is already the necessary functionality? 

      Digging in … they won’t lead to anything. not even all image editors can do this, and you want it from mql…

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    Leave an answer

    Leave an answer
    Cancel reply

    Browse

    Sidebar

    Ask A Question

    Stats

    • Questions 514
    • Answers 2k
    • Posts 5
    • Comments 0
    • Best Answers 0
    • Users 921
    • Popular
    • Answers
    • Tags
      • On: December 18, 2020
      • Answers: 16

      How to allow trading at certain times

      • On: December 29, 2020
      • Answers: 16

      Example of implementing the OOP pattern Abstract Factory using MQL5 ...

      • On: December 18, 2020
      • Answers: 15

      EMA with a different formula

      • On: December 29, 2020
      • Answers: 15

      Invitation for algo traders.

      • On: December 29, 2020
      • Answers: 14

      Dear Programmers, do not pass by, help fix the error!

    • atma1
      atma1 added an answer Added activation. Thanks. April 8, 2021 at 6:54 am
    • iks_
      iks_ added an answer Atma1: Good day, dear colleagues. Yesterday I updated VMware to… April 8, 2021 at 6:54 am
    • renat
      renat added an answer Atma1: Good day, dear colleagues. Yesterday I updated VMware to… April 8, 2021 at 6:54 am
    • mvs
      mvs added an answer Renat Fatkhullin: You can not immediately send the received data,… April 8, 2021 at 6:53 am
    • anton_m
      anton_m added an answer Renat Fatkhullin: How much data do you read? You can… April 8, 2021 at 6:53 am
    analytics british company computer developers django employee employer english facebook french google interview javascript language life php proforexea programmer programs pro vsa salary university

    Users

    atma1

    atma1

    • 1 Question
    • 1 Answer
    s22aa

    s22aa

    • 1 Question
    • 1 Answer
    areedbreen

    areedbreen

    • 1 Question
    • 1 Answer

    Footer

    First independent community of traders

    About

    An independent community of forex traders. This is where traders communicate. You can ask your questions and you will receive an answer to your question.
    • Terms of Use
    • Privacy Policy
    • Cookie Policy
    • Knowledge Base
    • Support

    © 2021 Forexcommunity.net. All Rights Reserved