imagine you have a picture taken by your iPhone but it’s way bigger than it has to be for your app and its eating up all your storage,
i have this problem but i have a solution.
I want to make an app which makes the iPhone taken picture into a square with a white background.
This can be done with a MacBook but the problem is, instead of white boards it has black, can anyone please help me to solve that issue?
We need more data from Dante to give him a better advice.
Dante ?
What kind of application do you want to create: Desktop or iOS ?
Care to expand what you do not get ?
http://documentation.xojo.com/index.php/Graphics
Graphics.DrawPicture:
Draws the picture at the specified location. The picture can be shown at full size, cropped, or scaled. All units are pixels.
i want to create an desktop application in Xojo,
it should put pictures, like an iPhone taken picture into a field of 1000x1000 pixels (bigger pictures just take storage from the server)
it should look similar to the function in Instagram where you can find the white boarders on the outside but the picture is still square
i tried some options but the summary isn’t that what i need
what i think of drawing an square picture of a white field (plane field) and putting the other one promotional on top of that
If you go through Dante’s posts you can see he’s using the Web framework.
Please don’t try to correct others when you don’t know the answer yourself, Christian was only trying to help and be clear.
In that loop, you have to use code to:
load an individual photo,
create a new Picture using the just loaded photo width and height
to be sure to not have a black backgound, draw it using the white color.
then resize the Picture to the size you want, placing it at 0,0 or 10,10 (if you want a white margin of 10,10 pixels
DrawPicture also allows you to resize the original Picture (Photo).
then save the image into a different folder,
then you are done.
Most of the code is available with explanations here: