Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PictureVal property strange behavior
Message
From
09/04/2007 15:15:27
 
 
To
09/04/2007 14:25:28
Emerson Reed
Folhamatic Tecnologia Em Sistemas
Americana - São Paulo, Brazil
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01213513
Message ID:
01213581
Views:
19
Emerson,

I've been thinking alittle bit more on this issue...
I think I know what happens.

As you know, for GdiPlus-X, we use the Image Canvas a lot in our samples.
This control basically saves the desired images to streams, retrieves the binaries and stores these contents at the PictureVal property of the image control.

Me and Bo noticed that the image rendered by Picture and PictureVal are different too.
The image in PictureVal appears "blurred", even when we don't want, it seems to use always an ANTI-ALIAS interpolation mode.

In your case, as your original image is just one pixel wide, and you expect the image object to repeat the drawing multiple times, till it fills the control, VFP seems to use always the last pixel rendered and copies for the next column. This is why it seems to be changing the image, creating a new ugly and undesired gradient.

The only worrkaround that I can think at this moment is that you create your image much wider than only one pixel wide. Using the sample image that you provided, 30 pixels wide created a satisfactory result.


We need to report this urgently to MS, let's try to deal with this in PVT, and after that we call the community to test and maybe help us validating this problem at MS support.

César


>It seems that I'm not the only one with this problem...
>
>http://www.sweetpotatosoftware.com/SPSBlog/CommentView,guid,94b58210-456a-4fc5-84c9-39db7dcde478.aspx#commentstart
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform