Advanced Forum Search Results
-
Yes, apologies for the slip.
Writeable bitmaps in Silverlight 3.0 are always created with premultiplied alpha - and the Silverlight compositing engine will presumably assume this when blending, so the blending operation is more likely to be
R = (1-A1)*C0 + C1
For example, if you set a pixel value
RGBA = (255,0,0,2)
Silverlight assumes ...
-
Its likely that the colour of the final image is calculated with the formula
Result = (1-A1)A0C0 + A1C1
Where C0A0 is the colour of the base image, and C1A1 is the pixel colour of the overlay ( normalized to [0,1] )
So, where the base colour is white ( we assume A0 = 1 )
R = (1.0 - 0.008)*1 + 0.008*1 = 1
G = (1.0 - 0.008)*1 + 0.008*0 = ...
-
The short answer is no. Allowing this kind of thing would not only have massive security implications, but would also negate Silverlight's cross platform compatibility.
Andrew.
-
I have submitted a patch that adds support for Merged Resource Dictionaries in Themes. See also my blog post for an explanation for those interested.
http://www.planetmarshall.co.uk/index.php/2009/07/using-merged-resourcedictionaries-in-silverlight-themes
http://silverlight.codeplex.com/SourceControl/PatchList.aspx
-
Try
http://www.bitwisemag.com/2/DLR-Build-Your-Own-Language
via the IronPython blog at
http://blogs.msdn.com/ironpython/archive/2008/03/16/dlr-resources.aspx
Andrew.
-
I suppose this is going to be fairly low down on the priority list, but surely this could make the 3.0 release?
Expose the PixelShader.SetStreamSource() method, which is available in Wpf.
Without this it is not possible to dynamically load generated shaders. I was feeling rather pleased with myself having written a custom shader compiler ...
-
I thought this was an interesting problem and looked into it, but while on the face of it the DirectX DDK provides everything you need to write a compiler, Silverlight just doesn't provide the infrastructure to use generated pixel shader byte code directly. There is no equivalent to WPF's PixelShader.SetStreamSource() function.
You ...
-
I'm using the latest Silverlight 2 version of the toolkit from March 2009.
It turns out that the Accordion control did not like the control template I was using in my theme. I've since updated it and everything seems to be working OK.
Thanks,
Andrew.
-
Alex,
Can you post a minimal example? Without knowing what you're doing outside of the render loop I can't really reproduce the issue.
Regards,
Andrew.
-
Hi there,
I have noticed that my silverlight 2.0 app is not functioning correctly under SL3. The accordion control from the SL2.0 toolkit that provides the UI is not visible under the Silverlight 3.0 beta runtime. I am currently attempting to debug the issue, but any help would be ...