| |

VerySource

 Forgot password?
 Register
Search
View: 794|Reply: 2

How to read * .jpg files and modify and save pictures

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-5 16:20:01
| Show all posts |Read mode
Please enlighten me!
How to read the * .jpg file into a container, and modify it in the container, and then save it. The young man is dumb. Please enlighten me, keep online, wait for help.
Reply

Use magic Report

0

Threads

10

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-1-6 09:21:01
| Show all posts
Use ImageMagick + JMagick
Reply

Use magic Report

1

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 Ukraine

Post time: 2020-1-6 09:54:01
| Show all posts
public class Picture extends Applet
{
private Image pict;
Ranch
public void init ()
{
pict = getImage (getCodeBase (), "name.jpg");
}
Ranch
public void paint (Graphics g)
{
g.drawImage (pict, 10, 10, this);
}
}
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