TJPEGImage *JPG = new TJPEGImage(); // Create new JPG
JPG->LoadFromFile("Image.jpg"); // specify your own Image
Graphics::TBitmap *map = new Graphics::TBitmap();
map->Width = 100; // change to what you require
map->Height = 200;
map->Canvas->StretchDraw(Rect(0,0,100,200),JPG);
JPG->Assign(map);
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.