How to put images in pygame without overlapping? To put images in pygame without overlapping we have to write this code: ''' im...
How to put images in pygame without overlapping?
To put images in pygame without overlapping we have to write this code:
'''
img=pygame.image.load("img.jpg")
img=pygame.image.scale(img,(322,433))
window.blit(img,(0 , 0))
'''
For more under standing you have to understand the code for making changes and as well as you are learning pygame but may be pygame should be not for you for choosing a correct programming language Watch my blog "What is the best option for freshers in programming language?".
If you want to learn pygame I am giving you the link of the playlist to learn pygame from youtube channel name is code with harry playlist link.
img=pygame.image.load("img.jpg")
img=pygame.image.load("img.jpg") is used to load the image on our code.
img=pygame.image.scale(img,(322,433))
img=pygame.image.scale(img,(322,433)) is used to give the width,height of the image.
window.blit(img,(0 , 0))
Conclusion
This is the way for to put images in pygame without overlapping of the pygame module and for not missing our more valuable content bookmark our website by clicking on top right star button and bookmark our website in this blog we have seen that how to load the image in pygame and we have also learn how to give width and height to image and we have also learn how to paste the image in the window.
And if you don't know we have a website for downloading thumbnail of youtube which help the youtubers for putting thumbnail of there old videos on there video the website link is proyoutubethumbnail.in.
And our second website is to translating audio to text audiototextbest.blogspot.com it is used for translating audio to text in english or in hindi.
And our third website is to download the youtube videos and youtube to mp3 this is the best website for downloading youtube videos website is promp3videodownloader.blogspot.com.
By Nikunj Gupta
By technical-gyan-double.blogspot.com
No comments