Solved

A strange question, but a good one.

Posted on 1997-04-19
7
154 Views
Last Modified: 2010-04-04
How do darken lighten a bitmap while it's in a TIMage?
Example:
My Timage contains an Image that I just scanned.  Now I wish to darken, lighten, contrast etc... How do I do this.  I know there are SHAREWARE components for this.  I am interested in knowing the code to do it myself. Thank-you
I am looking for the source code to do this.  I want to lighten and darken the image after it's scanned.
I DON'T HAVE ANY POINTS TO OFFER! I thought they were free always and gave my first 500 away. HELP Please.  If I had the points I would give them
0
Comment
Question by:Andrew Harrison
7 Comments
 
LVL 3

Expert Comment

by:mheacock
Comment Utility
Bump up the points to 100 and I will shed some 'contrast' on your dilemna.  Bad joke, I know.

This isn't 15 pt. question, nor is it a 50 pt. question.  It's more like a 200 pt. question, but I'm feeling charitable today.
0
 
LVL 1

Expert Comment

by:Heapster
Comment Utility
Think about what you wish to change about the bitmap, i.e. the palette, and change it.  You dont get any more for 15 pts.
0
 
LVL 4

Accepted Solution

by:
StevenB earned 20 total points
Comment Utility
Well here's a quick answer, if everybody else is too stingy to provide one for 15 points:

You'll have to scan the bitmap pixel at a time and change the RGB values of each point. By tending the values of the Red Green and Blue components evenly towards 255 you will effectively lighten the Bitmap whilst maintaining the Hue (Colour). Likewise tending the values evenly towards 0 will darken the image.

There you go. Steven.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:Andrew Harrison
Comment Utility
Edited text of question
0
 

Author Comment

by:Andrew Harrison
Comment Utility
Edited text of question
0
 

Author Comment

by:Andrew Harrison
Comment Utility
Adjusted points to 20
0
 
LVL 4

Expert Comment

by:StevenB
Comment Utility
 Is anybody still interested in this question? The answer seems to have been established elsewhere. It would seem good etiquette to in some way conclude this qustion. On the off chance that you are new to this site I'll explain:

  The idea is that once someone answers a question the questioner either rejects that answer or grades it. If neither of these things happen then the question just loiters on the page for God knows how long and the Answerer is less compelled to answer further questions.
  The whole idea behind this points thing is to moderate the questions asked to only those which really need asking. I don't hold with this policy that some people seen to have which involves bartering for more points before they will answer, we are all supposed to be helping each other out here. I will therefore answer any question which I can, whatever the points allocated, but I do appreciate it if there is then some reponse from the questioner, so that I don't feel like I'm completely wasting my time.
  If you think my answer is rubbish then reject it.

  Cheers, Steven.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now