Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize dynamic size, Mouse message and Screenshot by GoogleEarth

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you how GoogleEarth to achieve dynamic size, mouse messages, screenshots, I believe that most people do not know much, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

1) realize that the GoogleEarth display screen changes with the size of the window.

2) intercept GoogleEarth mouse messages to achieve click, double-click functions; mouse wheel zoom can only be enlarged!

3) implement GoogleEarth color screenshot (test environment: Windows 2003 Server, not available in Vista and Win7, XP not tested)

Let's move on to the code:

1. GoogleEarth changes its size dynamically

2. GoogleEarth mouse message

In this example, hooks are used for mouse message processing, and the HookAPI.dll implementation is called.

Click the event:

Double-click the event:

These two codes are still relatively crude, such as the main window focus detection has not been added, I believe readers can add their own. O (∩ _ ∩) O ~

3. GoogleEarth screenshot

There are two screenshot functions in the program, one is the screenshot function of GoogleEarth, which can only capture black and white images, the other is color screenshot, but the operating system above Vista does not support it, and has not found a suitable way to achieve Vista and Win7 compatibility.

1) GoogleEarth comes with screenshot feature:

2) GoogleEarth color screenshot:

The above is all the contents of the article "how to achieve dynamic size, mouse messages and screenshots of GoogleEarth". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report