473,320 Members | 1,817 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How to turn image into black and green scale?

How do you make a picture into black and green scale? Kinda like the grayscale or black and white scale.
Oct 13 '15 #1
3 1507
chaarmann
785 Expert 512MB
Classical grayscale is easy: just make every second black dot white.
Black and white scale: use brightness value of each pixel and redraw it with color white with the corresponding brightness.
Black and green scale: like black and white scale, but use green instead of white.
Oct 13 '15 #2
I was able to successfully make a grayscale and black and white. But I could not figure what values to put for black and green scale. I know red and blue are zeroes. But my final result always seem to be just green and no black.
Oct 13 '15 #3
chaarmann
785 Expert 512MB
It was all green?
I know that problem too well from a game I played on C64 25 years ago. There was a blue river with red piranhas inside. But I had a black-and-white monitor and they used the same brightness for red and blue. So I always got eaten by the invisible piranhas and never made it on the other side of the river. During that time I played all games up to the end and was very proud of it. So I spent hours for hours to blindly avoid the piranhas, and it nearly drove me mad. I still couldn't do it. I was cursing, why could'nt the programmer just use different brightness? So I started hacking the game to change the brightness of the piranhas to be able to cross the river. My programming career began ...
Oct 14 '15 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Phil Powell | last post by:
I borrowed this code from a source: for($a=0;$a<imagecolorstotal ($image_id);$a++) { $color = imageColorsForIndex($image_id,$i); $R=.299 * ($color)+ .587 * ($color)+ .114 * ($color);...
7
by: Scott Schluer | last post by:
Is there a way to use the Image class to convert a color photo (GIF or JPEG) to a B&W photo? Thanks, Scott
2
by: Andreas Viklund via DotNetMonster.com | last post by:
Hi! I am developing an application in ASP.NET that takes an image, that have been created with a digital camera or camera phone, and processes it, to get data from it. The image taken by the user...
1
by: Israel | last post by:
Hi... Somebody knows how can i visualize TIF image in my .Net Webproyect, is there a .NET webcontrol who can open and visualize TIF image (Black and white, gray scale and color)? Is there a...
3
by: CG3000 | last post by:
I have an Image in a picture box in VS 2005 that I want to print using the following event handlers: Private Sub btnPrintLabels_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)...
0
by: Charles A. Landemaine | last post by:
I designed a standard-compliant mockup for PC-BSD's web site. The page is displayed properly in the following browsers: - IE7 - Opera 9 - FF2 - Seamonkey But when I open it in Konqueror...
3
kestrel
by: kestrel | last post by:
I was playing a game on my psp, then put it into sleep mode for about 30 minutes. After that it won't turn on. When i hit the switch, the green light turns on and stays on, but thats it. I can then...
1
by: deecronin | last post by:
I have an image with several rectangular image-maps, but the image is dynamic depending on the size of the broswer and i need image-maps to scale to suit the changes. Any ideas? <map...
0
by: Gregalvord | last post by:
Somehow my PC screen will not return, after projection
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.