Opening an image

Hi,

i want to be able to do this:

bmpPicture = OpenPic->Execute();

i want to execute open pic, this will then allow the user to choose an image they want to load. Then get that data and store it into bmpPicture, so that i can then send bmpPicture into something else.

This is the entire function if it helps:

1
2
3
4
5
6
7
8
9
10
11
void __fastcall TERDmarker::openimage1Click(TObject *Sender)
{
	TPicture * pct = new TPicture;
	Graphics::TBitmap *bmpPicture = new Graphics::TBitmap;

	 //bmpPicture = OpenPic->Execute();

	pct->Graphic = bmpPicture;
	Image1->Picture=pct;

}


Any information would be great.

Thanks
Ok, please before we continue this (in regard to your earlier question):

What is your experience level with programming?
And what API are you using in the first place?
Low lol
and C builder XE
Topic archived. No new replies allowed.