It is currently Mon May 20, 2013 9:53 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: 4.61b4 - Resize: Smooth not working, 24b & White fade, 32b
PostPosted: Sun May 13, 2012 1:19 pm 
Offline
Addict
Addict

Joined: Thu Nov 01, 2007 5:37 pm
Posts: 1561
Location: Germany
Using PB 4.61 beta 4 on Windows XP x86 I noticed two things:

1. If the image has 32 bits, the colors fade to alpha and white when enlarging the image. -> Tested with 4.51, 4.60 and 4.61. Only with 4.51 it works correctly (no fading to white)!
2. Resizing with #PB_Image_Smooth doesn't seem to work if the image has a depth of 24 bits. -> Tested with 4.51, 4.60 and 4.61. All behave the same.

Test code:
Code:
ImageNr = CreateImage(#PB_Any, 20, 20, 32 | #PB_Image_Transparent)

StartDrawing(ImageOutput(ImageNr))
   DrawingMode(#PB_2DDrawing_AlphaBlend)
   Box(1, 1, 10, 10, $FF00FF00)
   Circle(13, 13, 5, $7FFF00FF)
StopDrawing()

ResizeImage(ImageNr, 600, 600, #PB_Image_Smooth)

;ShowLibraryViewer("Image", ImageNr)
;CallDebugger
File.s = GetTemporaryDirectory() + "test.png"
UsePNGImageEncoder()
SaveImage(ImageNr, File, #PB_ImagePlugin_PNG)
RunProgram(File, "", GetPathPart(File))

End


Top
 Profile  
 
 Post subject: Re: 4.61b4 - Resize: Smooth not working, 24b & White fade, 3
PostPosted: Sun May 13, 2012 5:08 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Apr 02, 2007 1:43 am
Posts: 627
Location: Brazil
#1 not sure what to say but I can see some differences especially on the contour of the green box.
#2 confirmed here with Windows 7 x64.

_________________
Proud registered Purebasic user.
Because programming should be fun.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: LuCiFeR[SD] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye