4/8/2023 0 Comments Java simpleimage methodThe following source will compress the width to half size and double the height: g.drawImage (im,Ġ, 0, im.getWidth(this)/2, im.getHeight(this)*2,Ġ, 0, im.getWidth(this), im.getHeight(this),įigure 2: Scaled image to half width and twice height (No scaling will be done if the differences between the height and width of the two point sets is identical.) See Figure 2 below. Keeping the coordinates in the same corners results in the scaling of the image.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |