In this post, I’ll illustrate how to create an image with the help of color specified and size specified.
Sometimes, during development, you might need to create an image with specific color. As an example, if you wish to have 50×50 Red square image. To handle such requirement, this post can help you.
Use following function to create an image.