Hi, I was given the honorable task of transforming a PHP script into a Pascal program.
Unfortunately, I have never worked with graphics functions in Pascal. Therefore I hope that you can help me. I already have some practice developing Windows programs in Pascal / Delphi. However, these were mostly database applications or tools for Windows. :'(
I'm looking for a way to use the following PHP functions in Pascal.
Here we go:-
Imagecreatetruecolor((($max_x+1)*2048),(($max_y+1)*2048));
//-> Create a new true color image (X,Y)
-
Imagecolorallocate($newpicture,255,255,200);
// -> Allocate a color for an image
-
ImageCreateFromJPEG// -> Create a new image from file or URL
-
Imagecopy($newpicture,$serverpicture,($x*2048),($y*2048),0,0,2048,2048);
// -> Copy part of an image
-
Imagejpeg($newpicture,$savename.'.jpg',100);
// -> Output image to browser or file (save image!)
Thats it!
I've been sitting here at a loss for a while now because I just can't find a solution.