| |

VerySource

 Forgot password?
 Register
Search

How do I scale a picture with a point as the center?

[Copy link]

2

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-7-5 22:30:01
| Show all posts
The pulley is triggered by an event, but how to judge
Does the pulley roll up and down?
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-6 20:30:01
| Show all posts
[Quote=quote from the 9th floor reply:]
I am a newbie to c#, I would like to ask where is the minPanel program on the 9th floor defined? I run the code hint:
"Location.Form1" does not contain the definition of "minPanel", and the extension method "minPanel" that accepts the first parameter of type "Location.Form1" cannot be found (are you missing a using directive or assembly reference?)
"Location.Form1" does not contain the definition of "controlframe", and the extension method "controlframe" that accepts the first parameter of type "Location.Form1" cannot be found (are you missing a using directive or assembly reference?)
Reply

Use magic Report

1

Threads

2

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-18 22:54:44
| Show all posts
1. The picturebox picture property is set to zoom, the picturebox.parent control uses a panel, and the autoscroll property is set to true
2. When the picturebox loads the picture, set the size to image.size
3. When the scroll wheel zooms in, set picturebox.width = picturebox.width*1.1 picturebox.height=picturebox.height*1.1
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list