Oct 18
by Paul Lorena
Last 29 October, a Microsoft presentation in Brussels, the goal it’s show the Microsoft’s vision of the web in the next future. Obviously was strongly oriented to Silverligth, SketchFlow, MVC, RIA and obviously the demo on live of Surface. They talked also about NUI (Natural User Interface)
I was really excited to attend the Brad Abrams presentation, I really enjoyed the book (co-authored by him) Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries (2nd Edition) I think it’s a “must” for every .NET software engineer , I think it’s the first time I’d listened the “ecosystem concept” in the IT domain, the concept stands the environment to use an API in a right way.
The presentation was about RIA, you can follow the Abrams’s MVC project in this link
http://blogs.msdn.com/BradA/
One day before to REMIX he talked at VISUG (I didn’t attend the session) but here the link
http://www.microsoft.com/belux/msdn/nl/chopsticks/default.aspx?id=1443#
Some pics here
Finally! I was really surprise, to discover a lot of (really a lot of) young people not more than 20 years old, that makes me think about the new generation of developers
good for them! good for us…
Aug 26
Gracias a WriteableBitmap podemos realizar la manipulación de imágenes en Silverlight 3. En este ejemplo, realizaremos la conversión de la imagen fuente de un control Image a su par en escarla de grises. Aplicaremos una fórmula de conversión a nivel de bytes del pixel (obtenido inicialmente como entero).
void MakeGray(Image img)
{
WriteableBitmap bitmap = new WriteableBitmap(img,null);
for (int y = 0; y < bitmap.PixelHeight; y++)
{
for (int x = 0; x < bitmap.PixelWidth; x++)
{
//obtiene pixel a pixel
int pixelLocation = bitmap.PixelWidth * y + x;
int pixel = bitmap.Pixels[pixelLocation];
byte[] pixelBytes = BitConverter.GetBytes(pixel);
byte bwPixel = (byte)(.299 * pixelBytes[2]
+ .587 * pixelBytes[1]
+ .114 * pixelBytes[0]);
pixelBytes[0] = bwPixel;//b
pixelBytes[1] = bwPixel;//g
pixelBytes[2] = bwPixel;//r
//la posición 3 es el alpha
bitmap.Pixels[pixelLocation] = BitConverter.ToInt32(pixelBytes,0);
}
}
img.Source = bitmap;
}
Referencias:
Espero haya sido de utilidad
Post.End();
Aug 08
Si estás usando Navigation Framework de Silverlight te darás cuenta que cada Page tiene su propiedad Title que al momento de ser navegada se establece “eliminando” evidencia del título principal. Para poder modificar este comportamiento, bastará con programar el evento Navigated del control Frame que contiene a cada Page.
Read the rest of this entry »
Dec 01
Ahora Live nos tiene un nuevo servicio llamado Silverlight Streaming, el cual nos permite almacenar nuestras aplicaciones hechas en Silverlight (sea en la versión 1 o 2) para poder publicarlas en nuestras páginas web. También se pueden publicar videos (a lo youtube).
Basta subir los archivos *.xaml, *.js y el manifest.xml correspondiente en un comprimido zip para la publicación.
Sólo basta con tener una cuenta en Live e inscribirse.
Para los bloggers que deseen publicar rápidamente un video o una aplicación utilizando el servicio existe un plug-in de LiveWritter aquí
Durante los siguientes posts exploraremos algunos features de Silverlight 2 sobre todo en el plano de DataBinding.
Post.End();
Recent Comments