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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Pixels_ie16g
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Bernhard

24 Posts

Posted - Nov 07 2022 :  12:41:58  Show Profile  Reply
Hi Nigel,

I am working with C++Builder and try the following code:

void __fastcall TForm1::Button3Click(TObject *Sender) {
int a = View->IEBitmap->Pixels_ie16g[1000, 1000];
}

I get an Copiler error:

[C++ Error] TestView2_Unit.cpp(64, 50): wrong number of index arguments to property. Expecting 2, found 1

Same with other Pixels... properties.

I dont understand what this means; there are 2 index arguments.

Bernhard

xequte

38683 Posts

Posted - Nov 08 2022 :  03:07:44  Show Profile  Reply
Hi Bernhard

In C ++ each sub-index has its own square bracket, so the correct declaration would be...

int a = View->IEBitmap->Pixels_ie16g[1000][1000];


Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: