Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 01-16-2001, 07:11 PM
ama_bg ama_bg is offline
Junior Member
 
Join Date: Jan 2001
Posts: 1
Default Canvas.Pixels

I have a very serious problem when working with pixles
It takes about 10-20s on my PC to assign new values to the pixels property of canvas. Can you tell me another way to access TImage pixel by pixel.
Reply With Quote
  #2  
Old 01-16-2001, 11:01 PM
pascal.enz pascal.enz is offline
Member
 
Join Date: Jan 2001
Posts: 73
Default RE: Canvas.Pixels

The fastest way is the scnaline property. It allows to read a hole line from the Bitmap to memory. There you can edit the pixels and write the line back to the Bitmap. See the following link for some examples and descriptions:

http://www.efg2.com/Lab/ImageProcessing/Scanline.htm

My experience shows that the canvas of the form is much faster then the canvas of an TImage object. For Animations I would recommand to draw direct to the canvas of the form.

Hope that helps
Reply With Quote
  #3  
Old 01-16-2001, 11:01 PM
pascal.enz pascal.enz is offline
Member
 
Join Date: Jan 2001
Posts: 73
Default RE: RE: Canvas.Pixels

Sorry Scanline not scnaline!!!
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 08:22 PM.


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