but made it all black. I only sticked to the outlines of the picture.
Now this example was a free stock photo, however I did the same with some pictures I found at google.
Do I have to buy the picture or at least notify the owner of the picture, in order to keep it legal?!
You are not allowed to create a "derivative work" (which is what you're doing) without the permission of the copyright holder. Even if you purchase the image, the rights of that purchase may not include the right to create derivative works.
Read the terms of use on the site from which you got the stock image. They should spell out very clearly how you're allowed to use the image. If they don't specifically give you the permission to do something, assume you can't.
Caveat: What you're using the image for could have a bearing on what you're allowed to do. It's likely that no one is going to throw a fit if you're using it for a school project. It's much more likely that you'll get in trouble if you're using it as the logo for your company. The former is a defensible use under "fair use" doctrine. The latter isn't.
The best rule of thumb is: If you haven't specifically been told you're allowed do it, assume you're not.
In digital format on websites, multimedia presentations, broadcast film and video, cell phones.
In printed promotional materials, magazines, newspapers, books, brochures, flyers, CD/DVD covers, etc.
Along with your corporate identity on business cards, letterhead, etc.
To decorate your home, your office or any public place.
You may not use the Image
For pornographic, unlawful or other immoral purposes, for spreading hate or discrimination, or to defame or victimise other people, sociteties, cultures.
To endorse products and services if it depicts a person.
In a way that can give a bad name to SXC or the person(s) depicted on the Image.
As part of a trademark, service mark or logo.
SELLING AND REDISTRIBUTION OF THE IMAGE (INDIVIDUALLY OR ALONG WITH OTHER IMAGES) IS STRICTLY FORBIDDEN! DO NOT SHARE THE IMAGE WITH OTHERS!
Always ask permission from the photographer if you want to use the Image
In website templates that You intend to sell or distribute.
For creating printed reproductions that You intend to sell.
On "print on demand" items such as t-shirts, postcards, mouse pads, mugs (e.g. on sites like Cafepress), or on any similar mass produced item that would contain the Image in a dominant way.
Logic without the fatal effects.
All code snippets are licensed under WTFPL.
Bookmarks