In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the relevant knowledge of "What are the 7 new features of Silverlight3". Xiaobian shows you the operation process through actual cases. The operation method is simple, fast and practical. I hope this article "What are the 7 new features of Silverlight3" can help you solve the problem.
1. Support for more media encoding formats
New multimedia encoding formats added in Silverlight 3 include H.264, AAC, MP4. Silverlight has always been a technology that supports multimedia, especially video, since its inception. This time, more encoding formats are supported, which makes it easier for website builders to publish and deploy video materials. All you need is the following line of XML:
2. Using GPU acceleration
As graphics computing power increases, applications take more and more graphics computing tasks from the CPU to the GPU. However, to take advantage of GPU, usually means more coding tasks for programmers, in Silverlight 3, the complexity of this task is greatly simplified, just need to add a few lines of XML code in XAML, you can easily enjoy the GPU's super-computing power, paste a GPU rendering image:
3. Perspective 3D
Perspective 3D, simply put, is to put 2D objects into 3D space. Unlike traditional 3D, which projects objects from 3D space into 2D space, perspective 3D means higher performance, a friendlier programming interface, and 80% of our 3D tasks. Well, having said so much, let's look at a demo, a line of XAML changes:
This example, extended slightly, allows you to rotate a control in 3D space in Silverlight 3.
4. Custom effects
In Silverlight 3, the concept of shaders is introduced, which is a pixel-granular operation--whenever Silverlight 3 wants to display a pixel, it says to the shader,"I'm going to display this pixel, do you want to do something about it, implement some special effect? "。Let's look at the power of shaders: In the following example, the image on the left is the background image and the image on the right is the foreground image. Before Silverlight 3, although we could display both images at the same time, the background image was obscured by the foreground. (Of course, you can set the transparency of the foreground, but the sharpness of the entire foreground image will decrease.) We can apply a shader when displaying the foreground image: filter out all blacks. In this way, we filter out all the black background in the foreground and have a clear flame.
5. More control support
With each new release of Silverlight, many new controls are introduced. This version is no exception, the new controls are: DockPanel, Expander, Label, TreeView, ViewBox and so on. Here's a "Save as... "(Save As) control. Some friends may ask,"Save As" is a familiar control, so why wait until Silverlight 3? The answer is security: Silverlight places significant restrictions on reading and writing local files to protect users. (Otherwise, if the server can read and write the user's local files at will, it is easy to make a phishing website). In Silverlight 3, support for Save As controls also has security concerns. The developer can create an instance of SaveFileDialog, but when the user selects a local file, he gets only the stream of the file, not the path to it. This design avoids providing the ability to open a local file in an arbitrary path, allowing Silverlight to run in a more secure environment.
6. Local messaging
Silverlight is a browser plug-in that may have multiple instances at the same time. For example, multiple browsers accessing a web page containing Silverlight at the same time will have multiple instances of Silverlight running at the same time, and native messaging allows these different instances of the siliverlight control to communicate with each other.
7. Run Silverlight outside the browser
Silverlight 3 supports installing a Silverlight page locally, allowing users to use it offline as a desktop application, and right-click to uninstall it.
For example, the following chess program runs in the browser. Users can save it as a local program in the right-click menu.
Then, you can run the program like a normal desktop program. It is also possible to uninstall this program from the desktop program's right-click menu.
So much for "What are the 7 new features of Silverlight3?" Thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the industry information channel. Xiaobian will update different knowledge points for you every day.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.