• 0

[C#] Drawing outline text


Question

Recommended Posts

  • 0
I don't know. You could effectively inline the GetStringPath code or change the method name. It's MS's API, not his. How many ways can you use AddString? This is why copyrighting code is stupid.

585288455[/snapback]

I wasn't supporting his demands I was just pointing out that clause 2 explicitly prohibits the case of giving out the source code. I would say that the small snippet used to GetString isn't worthy of even a mention - just read the book, understand the code and type it in yourself!

As for copyrighting code being stupid - I would far rather companies be able to copyright their code than patent it! I don't mind having to understand the problem and then write my own code to avoid the copyright, but not actually being able to produce code because it violates a patent is truly a horrific scenario...in the end you will not be able to code at all without falling foul of a patent. By that measure, copyrights are a delightfully benign measure of protection for companies to profit from their code.

  • 0
I wasn't supporting his demands I was just pointing out that clause 2 explicitly prohibits the case of giving out the source code. I would say that the small snippet used to GetString isn't worthy of even a mention - just read the book, understand the code and type it in yourself!

As for copyrighting code being stupid - I would far rather companies be able to copyright their code than patent it! I don't mind having to understand the problem and then write my own code to avoid the copyright, but not actually being able to produce code because it violates a patent is truly a horrific scenario...in the end you will not be able to code at all without falling foul of a patent. By that measure, copyrights are a delightfully benign measure of protection for companies to profit from their code.

585288849[/snapback]

Sorry if my tone came off as harsh. I know you were just pointing it out.

I agree with you on the patent thing. Copyright is much easier to circumvent. I just can't understand why people would even try to protect an abstract idea, especially using someone else's API. I can understand him trying to protect the rest of the work, but not a code example. To me, it's as absurd as a college professor telling you that you can't use the code he gives you in class without his written permission.

  • 0

Exactly - how can somebody teach you how to do something and then tell you "don't use it" !? :blink: At least he allows me to use it without exposing the source code but it still sounds stupid. As weenur said - one can always change the code a bit and say the it's his code. I think that those books shouldn't copyright code at all.

Thanks weenur, at least I know I can use the code now :D

  • 0
Exactly - how can somebody teach you how to do something and then tell you "don't use it" !? :blink: At least he allows me to use it without exposing the source code but it still sounds stupid. As weenur said - one can always change the code a bit and say the it's his code. I think that those books shouldn't copyright code at all.

Thanks weenur, at least I know I can use the code now  :D

585289213[/snapback]

Well the author has had to write the code, and if there were no copyright then a lazy author could just copy these examples verbartim and profit from someone elses work. I am pretty sure that it's not the authors intent to stop people from using the code in their own projects, especially tiny snippets such as the one you are interested in - he's just stopping the resale of his examples by a third party.

But copyright isn't a problem, if you know how to write the piece of code you write it - so long as you don't simply copy it you are free from copyright. I would just say that if you just want to copy the code then as the author for his permission as requested, if only as a common courtesy.

  • 0
But copyright isn't a problem, if you know how to write the piece of code you write it - so long as you don't simply copy it you are free from copyright. I would just say that if you just want to copy the code then as the author for his permission as requested, if only as a common courtesy.

585289350[/snapback]

I'd ask anyway. Chris is a very nice person.

  • 0

That's OK weenur 0 you don't need to ask, you did enough for me :laugh: Using the code is enough but I think that the copyright should be written this way:

2. No substantial portion of this source code may be used in order to create another educational resource (such as a book)? >without the express written permission of the copyright holders, where "substantial" is defined as enough code to be recognizably from this code.

The only worry of the author should be that no one else would copy his work in order to create another book, for example. Using some of the information to create another one is OK but copying all of it's content or most of it exactly as it appears in the book should be illegal.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • The possibility that milk gathers back into a glass implies that gravity can be 'reversed'.
    • VidCoder 12.20 by Razvan Serea  VidCoder is a DVD/Blu-ray ripping and video transcoding application for Windows. It uses HandBrake as its encoding engine. Calling directly into the HandBrake library gives it a more rich UI than the official HandBrake Windows GUI. VidCoder can rip DVDs but does not defeat the CSS encryption found in most commercial DVDs. You’ll need the NET 8 Desktop Runtime. If you don’t have it, VidCoder will prompt you to download and install it. The Portable version is self-contained and does not require any .NET Runtime to be installed. You do not need to install HandBrake for VidCoder to work. Feature list: Multi-threaded MP4, MKV containers Completely integrated encoding pipeline: everything is in one process and no huge intermediate temporary files H.264, H.265, MPEG-4, MPEG-2, VP8, Theora video Hardware-accelerated encoding with AMD VCE, Nvidia NVENC and Intel QuickSync AAC, MP3, Vorbis, AC3, FLAC audio encoding and AAC/AC3/MP3/DTS/DTS-HD passthrough Target bitrate, size or quality for video 2-pass encoding Decomb, detelecine, deinterlace, rotate, reflect, chroma smooth, colorspace filters Powerful batch encoding with simultaneous encodes Customizable Pickers to automatically pick audio and subtitle tracks, destination, titles and more Instant source previews Creates small encoded preview clips Pause, resume encoding VidCoder 12.20 changes: Updated HandBrake core to 1.11.2. Download: VidCoder 12.20 | 47.0 MB (Open Source) Download: Portable VidCoder 12.19 | 89.3 MB Link: VidCoder Home Page | Github | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Too soon, I'm still not over this death!
    • Normally, I admit when a title is clickbait (unfortunately, it's become somewhat necessary to compete against AI-dominated news sections today), but in this case, all supported versions is implied and doesn't need to be spelled out in the title. Of course, I'm covering a Patch Tuesday update bug that is only available to supported Windows SKUs. All our coverage relates to supported Windows software and SKUs only unless we expressly state that it's "unsupported", "unofficial", or "third-party". I'm sorry, but supported/official SKUs don't need to be spelled out as such in every Neowin headline.
  • Recent Achievements

    • Week One Done
      Jordan Smith earned a badge
      Week One Done
    • Reacting Well
      BizSAR earned a badge
      Reacting Well
    • First Post
      AndreaB earned a badge
      First Post
    • Week One Done
      Huge Trailer earned a badge
      Week One Done
    • Week One Done
      Classifyskilleducation earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      593
    2. 2
      +Edouard
      185
    3. 3
      PsYcHoKiLLa
      77
    4. 4
      Michael Scrip
      73
    5. 5
      Steven P.
      66
  • Tell a friend

    Love Neowin? Tell a friend!