Ticket #17 (defect)
Opened 2 years ago
Last modified 2 years ago
Resizing images corrupts them
Status: closed (fixed)
| Reported by: | Sakya | Assigned to: | fraca7 |
|---|---|---|---|
| Priority: | 1 | Component: | 1 |
| Version: | 1 | Keywords: | |
| Cc: |
I tried to resize an image with the dw and dh parameter of the blit method (on screen). On the pc with the mockup it works fine, but on PSP graphic is corrupted. Just try this with your image.png:
import psp2d
screen = psp2d.Screen()
background_image = psp2d.Image(480,272)
background_image.clear(psp2d.Color(0,0,0))
image1 = psp2d.Image("image.png")
posX = 50
w = 74
d = -2
while True:
screen.blit(background_image, 0, 0, background_image.width, background_image.height, 0, 0)
screen.blit(image1, 0, 0, image1.width, image1.height, posX, 50, True, w, 74)
w += d
posX += -d / 2
if w <= 0 or w >= 74:
d = -1 * d
screen.swap()
Attachments
Change History
04/20/06 15:26:10: Modified by Sakya
- attachment abadon.p1.png added.
04/22/06 08:52:32: Modified by fraca7
- status changed from new to closed.
- resolution set to fixed.

I tried with this image. :)