Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 01-29-2001, 11:55 PM
BlakeBlake BlakeBlake is offline
Senior Member
 
Join Date: Jan 2001
Posts: 156
Default bitmap scanline property (and related question)

I tried to use the scanline property to get a Pbytearray but the index is out of bounds. I have tried many things but still cant get it to work.
Can somebody give me a demo that shows how to read a bitmap from top to bottom or from left to right? and draw directly onto a form?
Also how would I manipulate the pixels within the quickly?
What is the best way to do this, with a loop? that seems slow to me, what is the best way to manipulate the data in one go with the same manipulation routine?

--thanks
Reply With Quote
  #2  
Old 01-30-2001, 01:58 AM
sun sun is offline
Member
 
Join Date: Jan 2001
Posts: 49
Default RE: bitmap scanline property (and related question)

if you load pixels of a line with tbitmap.scanline in an array, you have direct access the color to each pixel of line by index.

this works only for 256 color bitmaps, 'cause more colors more informations per pixel.
save your bmp in 256 color mode or convert it programatically. else you must use very hard to understand graphic routines.
i have learned much about these things at torry's delphi pages.
Reply With Quote
  #3  
Old 01-30-2001, 06:58 AM
MrBaseball34 MrBaseball34 is offline
Senior Member
 
Join Date: Jan 2001
Posts: 7,260
Default RE: bitmap scanline property (and related question)

What exactly are you trying to do? Earl F. Glynn's lab site
is the premier resource for Delphi graphic programming.
www.efg2.com/lab.

Check out the articles on ScanLine there...
Reply With Quote
  #4  
Old 01-30-2001, 02:17 PM
BlakeBlake BlakeBlake is offline
Senior Member
 
Join Date: Jan 2001
Posts: 156
Default RE: RE: bitmap scanline property (what I am trying to do)

I am experimenting
I am trying to make a screensaver that simulates a lens moving over it.
with a difference
The difference being the lens is a file (grayscale bitmap) and I have a screenshot of the desktop and I want to blend the shaded areas of the alpha channel into the desktop so that I get a nice faded lens. White being total transparency and black having no transparency.
maybe the explanation may help anybody to help me.

I need to know how to blend 2 pictures together using an alpha channel to vary the blending.

Ive even confused myself with this one
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 03:37 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2017, vBulletin Solutions, Inc.