简体   繁体   English

关于重用wp7示例中的代码

[英]Regarding reusing code from wp7 sample

Hi I am developing a wp7 app and the app needs code to crop image and I found the code sample which does that at http://code.msdn.microsoft.com/wpapps/Photos-Sample-a38a2c8e . 嗨,我正在开发wp7应用程序,该应用程序需要代码来裁剪图像,并且在http://code.msdn.microsoft.com/wpapps/Photos-Sample-a38a2c8e上找到了执行此操作的代码示例。 Can I use part of the code in my app? 我可以在我的应用程序中使用部分代码吗?

Regards, 问候,

Santom 桑托姆

The answer is in the licence on that page: 答案在该页面的许可证中:

(A) Copyright Grant - Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create. (A)版权授予-在遵守本许可的条款(包括许可条件和第3节中的限制)的前提下,每个贡献者均授予您一份非排他的,全球范围内的免版税版权许可,以复制其贡献,准备其衍生作品贡献,并分发其贡献或您创建的任何衍生作品。

(B) Patent Grant - Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software. (B)专利授予-在遵守本许可的条款(包括许可条件和第3节中的限制)的前提下,每个贡献者均根据其许可专利向您授予非专有的,全球范围内的免版税的许可,以制造,制造,使用,销售,许诺销售,进口,和/或以其他方式处置其在软件或软件的贡献的衍生作品的贡献。

As your use sounds like a description of a derivative work, you can use the code without having to pay a royalty. 由于您的使用听起来像是对衍生作品的描述,因此您可以使用该代码而无需支付使用费。 you should also respect the Conditions and Limitations: 您还应该遵守条件和限制:

(A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks. (A)无商标许可-此许可不授予您使用任何贡献者的姓名,徽标或商标的权利。

(B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically. (B)如果您因软件侵犯了您的专利而对任何贡献者提出专利要求,则从该贡献者到软件的专利许可将自动终止。

(C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software. (C)如果您分发软件的任何部分,则必须保留软件中存在的所有版权,专利,商标和所有权声明。

(D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. (D)如果您以源代码形式分发软件的任何部分,则只能在此许可下通过在分发中包括此许可的完整副本来进行分发。 If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license. 如果以编译或目标代码形式分发软件的任何部分,则只能在符合该许可的许可下进行。

(E) The software is licensed “as-is.” You bear the risk of using it. (E)该软件按“原样”许可。您承担使用该软件的风险。 The contributors give no express warranties, guarantees or conditions. 贡献者不提供任何明确的保证,担保或条件。 You may have additional consumer rights under your local laws which this license cannot change. 根据您当地的法律,您可能拥有其他消费者权利,该许可不能更改。 To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement. 在您当地法律允许的范围内,贡献者不包括对适销性,针对特定目的的适用性和不侵权的默示保证。

(F) Platform Limitation - The licenses granted in sections 2(A) and 2(B) extend only to the software or derivative works that you create that run directly on a Microsoft Windows operating system product, Microsoft run-time technology (such as the .NET Framework or Silverlight), or Microsoft application platform (such as Microsoft Office or Microsoft Dynamics). (F)平台限制-第2(A)和2(B)节授予的许可仅扩展到您创建的,直接在Microsoft Windows操作系统产品,Microsoft运行时技术(例如, .NET Framework或Silverlight)或Microsoft应用程序平台(例如Microsoft Office或Microsoft Dynamics)。

If you are asking about the license of the code given by Microsoft, next there is the full description of the MS-LPL applied. 如果您要询问Microsoft提供的代码的许可证,则接下来是所应用的MS-LPL的完整说明。

Take a look to this article to get an easier explanation: http://news.cnet.com/8301-13505_3-10058421-16.html 请看一下这篇文章以获得更简单的解释: http : //news.cnet.com/8301-13505_3-10058421-16.html

MS-LPL License full description: MS-LPL许可证的完整描述:

MICROSOFT LIMITED PUBLIC LICENSE version 1.1 This license governs use of code marked as “sample” or “example” available on this web site without a license agreement, as provided under the section above titled “NOTICE SPECIFIC TO SOFTWARE AVAILABLE ON THIS WEB SITE.” If you use such code (the “software”), you accept this license. MICROSOFT LIMITED的公共许可证版本1.1本许可证控制未经许可协议在本网站上提供的标记为“示例”或“示例”的代码的使用,如上面标题为“该网站上软件的特定说明”的部分所述。如果您使用此类代码(“软件”),则表示您接受此许可。 If you do not accept the license, do not use the software. 如果您不接受许可,请不要使用该软件。

  1. Definitions The terms “reproduce,” “reproduction,” “derivative works,” and “distribution” have the same meaning here as under US copyright law. 定义术语“复制”,“复制”,“衍生作​​品”和“发行”在此具有与美国版权法相同的含义。 A “contribution” is the original software, or any additions or changes to the software. “贡献”是原始软件,或者对该软件的任何添加或更改。 A “contributor” is any person that distributes its contribution under this license. “贡献者”是根据本许可分配其贡献的任何人。 “Licensed patents” are a contributor's patent claims that read directly on its contribution. “许可专利”是贡献者的专利权利要求,直接阅读其贡献。

  2. Grant of Rights (A) Copyright Grant - Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create. 权利授予(A)版权授予-在遵守本许可的条款(包括许可条件和第3节中的限制)的前提下,每个贡献者均向您授予非排他的,全球范围内的免版税版权许可,以复制其贡献,准备衍生产品其贡献的作品,并分发其贡献或您创建的任何衍生作品。 (B) Patent Grant - Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software. (B)专利授予-在遵守本许可的条款(包括许可条件和第3节中的限制)的前提下,每个贡献者均根据其许可专利向您授予非专有的,全球范围内的免版税的许可,以制造,制造,使用,销售,许诺销售,进口,和/或以其他方式处置其在软件或软件的贡献的衍生作品的贡献。

  3. Conditions and Limitations (A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks. 条件和限制(A)无商标许可-此许可不授予您使用任何贡献者的姓名,徽标或商标的权利。 (B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically. (B)如果您因软件侵犯了您的专利而对任何贡献者提出专利要求,则从该贡献者到软件的专利许可将自动终止。 (C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software. (C)如果您分发软件的任何部分,则必须保留软件中存在的所有版权,专利,商标和所有权声明。 (D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. (D)如果您以源代码形式分发软件的任何部分,则只能在此许可下通过在分发中包括此许可的完整副本来进行分发。 If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license. 如果以编译或目标代码形式分发软件的任何部分,则只能在符合该许可的许可下进行。 (E) The software is licensed “as-is.” You bear the risk of using it. (E)该软件按“原样”许可。您承担使用该软件的风险。 The contributors give no express warranties, guarantees or conditions. 贡献者不提供任何明确的保证,担保或条件。 You may have additional consumer rights under your local laws which this license cannot change. 根据您当地的法律,您可能拥有其他消费者权利,该许可不能更改。 To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement. 在您当地法律允许的范围内,贡献者不包括对适销性,针对特定目的的适用性和不侵权的默示保证。 (F) Platform Limitation - The licenses granted in sections 2(A) and 2(B) extend only to the software or derivative works that you create that run directly on a Microsoft Windows operating system product, Microsoft run-time technology (such as the .NET Framework or Silverlight), or Microsoft application platform (such as Microsoft Office or Microsoft Dynamics). (F)平台限制-第2(A)和2(B)节授予的许可仅扩展到您创建的,直接在Microsoft Windows操作系统产品,Microsoft运行时技术(例如, .NET Framework或Silverlight)或Microsoft应用程序平台(例如Microsoft Office或Microsoft Dynamics)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM