It is currently Sun Jul 22, 2018 12:10 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Red left border in CanvasGadget
PostPosted: Sat Feb 03, 2018 11:32 pm 
Offline
User
User
User avatar

Joined: Wed Jan 09, 2008 10:43 pm
Posts: 16
Location: Germany
Hello,

Here is a bitmap file:
https://www.dropbox.com/s/zhdvzi0o1qtls3n/ex.bmp?dl=0

And here is a code snippet:
Code:
OpenWindow(0,0,0,640,480,"test")
CanvasGadget(0,0,0,640,480)
LoadImage(0, "ex.bmp")
StartDrawing(CanvasOutput(0))
DrawImage(ImageID(0),10,10)
StopDrawing()

Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow

(Just test code. Some if's are missing, but this has nothing to do with my problem)

If I load the image using the snipped, the leftmost pixel column of the image is rendered as solid red border. :cry:

Happens on Ubuntu 17.4 and Linux Mint 18.1, but not on Windows. (all OS at 64 bit, the Ubuntu runs on different computer) :?

The sample image is in 4-bit. If I re-save it as 24-bit, the issue is gone. But that is not a solution for me, because I can't change the bit depth easily and it wouldn't be useful.

Please help me, how to fix? :D

Best regards,
Frank


Top
 Profile  
Reply with quote  
 Post subject: Re: Red left border in CanvasGadget
PostPosted: Sat Feb 03, 2018 11:56 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Mar 02, 2004 1:20 pm
Posts: 953
Location: Amphibios 9
confirmed. (Linux Mint 18.3 Cinnamon 64-bit)

Image

Greetings ... Peter

_________________
Can't decide if i need a hug, an XXL coffee, 6 shots of vodka or 2 weeks of sleep.


Top
 Profile  
Reply with quote  
 Post subject: Re: Red left border in CanvasGadget
PostPosted: Sun Feb 11, 2018 9:04 pm 
Offline
User
User
User avatar

Joined: Wed Jan 09, 2008 10:43 pm
Posts: 16
Location: Germany
How to workaround? I need a replacement for CatchImage() :mrgreen:


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users 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