OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: velasquez on December 04, 2008, 04:37:38 AM

Title: PictureBox in Beta 4
Post by: velasquez on December 04, 2008, 04:37:38 AM
Hi
I don't get to show an image correctly in PitcureBox. 
Could anybody reproduce this to know if it is a BUG?
 
Thanks
Title: Re: PictureBox in Beta 4
Post by: velasquez on December 09, 2008, 03:59:56 AM
Hi 
Did anybody already get to test the image that I posted in PictureBox of Beta-4? 
I need to know because she appears bad. 
Thanks 
Title: Re: PictureBox in Beta 4
Post by: owenwengerd on December 09, 2008, 08:41:44 AM
Can you post a small test project that demonstrates the problem?
Title: Re: PictureBox in Beta 4
Post by: velasquez on December 09, 2008, 09:39:03 AM
Ok Owen 
I posted the test files. 
 
Thanks
Title: Re: PictureBox in Beta 4
Post by: owenwengerd on December 09, 2008, 10:04:57 AM
It looks like the problem is due to OpenDCL masking any pixels with RGB color 192,192,192 as transparent. I opened your image in Paint Shop, reduced the colors to 16, then resaved in .jpg format, and the problem disappeared.
Title: Re: PictureBox in Beta 4
Post by: velasquez on December 09, 2008, 10:53:54 AM
Hi Owen 
I cannot change the color of the logo in my image. 
See another created image in the same way and that works well. 
Also see the same image in OenDCL 4.1.2.2
Title: Re: PictureBox in Beta 4
Post by: velasquez on December 09, 2008, 10:56:42 AM
Excuse I forgot to post the images.
Title: Re: PictureBox in Beta 4
Post by: BazzaCAD on December 09, 2008, 11:43:31 AM
Transparency for color 192,192,192 was added in version 5 by design. So that's why it looks fine in version 4.
If you don't want to change the image yourself tell the author of it, that it can't use color 192,192,192.
It looks like it's just a mistake in the gradient as some of the pixel in the bottom row are  193,192,192 & 194,192,192.

Or if you want I can change that one bottom row of pixels to all one consistent color without changing any other colors.

Or you last option would be to change the background color of the pic. box to color 192.192.192, so then the transparent pixels will actually show the real color & look as you expect, but I do think that's a very good solution.
Title: Re: PictureBox in Beta 4
Post by: velasquez on December 09, 2008, 12:30:51 PM
Your suggestion to change color of background of PictureBox for 192 192 192 worked perfectly. 
I will remember this. 
Thank you very much.
Title: Re: PictureBox in Beta 4
Post by: BazzaCAD on December 09, 2008, 12:43:26 PM
Quote from: velasquez on December 09, 2008, 12:30:51 PM
Your suggestion to change color of background of PictureBox for 192 192 192 worked perfectly. 
I will remember this. 
Thank you very much.

I'm glad it helped, but I still think you should get the image fixed. :)
Title: Re: PictureBox in Beta 4
Post by: velasquez on December 09, 2008, 01:12:23 PM
I would like to know to do this a lot of images they exist in my project. 
Do you can me to explain as doing this? 
I work with Photoshop.

Thanks

Title: Re: PictureBox in Beta 4
Post by: BazzaCAD on December 09, 2008, 03:45:50 PM
Quote from: velasquez on December 09, 2008, 01:12:23 PM
Do you can me to explain as doing this? 
I work with Photoshop.

You want me to explain how to do this?
Use the rectangle selection tool & zoom in a select the 1 pixel row on the bottom of the gradient.
Use the fill tool and fill it what a new color, something like 194,192,192.
That's it.. :)
Title: Re: PictureBox in Beta 4
Post by: velasquez on December 10, 2008, 02:24:24 AM
Ok   
Thanks for your help. 
 
You could tell me something on the one that I posted in Working with transparency.

http://www.opendcl.com/forum/index.php?topic=495.0