ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 TIEBitmap.TBitmapScanlines vs TIEBitmap.Scanline

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
mauriciopt Posted - Nov 22 2017 : 12:51:59
Hi,

i have always used TIEBitmap.TBitmapScanlines


Exemple:
Row: PRGBTripleArray;

if aIEBitmap.PixelFormat <> ie24RGB then
aIEBitmap.PixelFormat := ie24RGB;

Row := aIEBitmap.TBitmapScanlines[y];

But, today i have an error reading valid row.
So, i have tryied :
Row := aIEBitmap.Scanline[y];

and it works,
What is the differnce between them and can i replace TBitmapScanlines ?

Thanks,
Mauricio

Mauricio
http://sourceforge.net/projects/tcycomponents/
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Nov 22 2017 : 14:54:00
Hi Mauricio

Sorry, I will improve the documentation for that.

TBitmapScanlines is only valid if TIEBitmap.Location=ieTBitmap, in other cases it is invalid. You are better to use TIEBitmap.Scanline, which supports all locations.

When TIEBitmap.Location=ieTBitmap then TIEBitmap.Scanline returns TBitmapScanlines anyway.

https://www.imageen.com/help/TIEBitmap.ScanLine.html


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com