Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Go Back   Foros Club Delphi > Principal > Gráficos
Register FAQ Members List Calendar Guía de estilo Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 23/09/2005
fmtidona fmtidona is offline
Miembro
 
Join Date: Sep 2005
Posts: 17
Poder: 0
fmtidona Va por buen camino
Problema con BitMap.Width

Tengo un BMP de 640x480, cuando lo quiero recorrer utilizando SCANLINE, me falla el limite BitMap.Width -1, for y := 1 to BitMap.Height do
begin
P := BitMap.ScanLine[y];
for x := 1 to
BitMap.Width -1 do
begin
a := P[x];


el problema es que no me recorre toda imagen y solo una parte. Modificando los limites (mediante prueba y error) llegue a que la medida debe ser


for x := 1 to 1550 do

para que funcione. Esto a que se debe?
Reply With Quote
  #2  
Old 24/09/2005
rounin rounin is offline
Miembro
 
Join Date: Sep 2005
Posts: 43
Poder: 0
rounin Va por buen camino
ScanLine returns the pointer to the internal data of bitmap.
Its interpretation depends on bitmap.PixelFormat.
IMHO, your problem has clear symptoms of invalid interpretation.

What is bitmap.PixelFormat value
and how is P[] declared?
Reply With Quote
  #3  
Old 25/09/2005
fmtidona fmtidona is offline
Miembro
 
Join Date: Sep 2005
Posts: 17
Poder: 0
fmtidona Va por buen camino
P : PByteArray;


bitmap.PixelFormat ...value?
I set bitmap.Monochrome := true;

thank you
Reply With Quote
Reply



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +2. The time now is 00:09.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi