1
00:00:00,510 --> 00:00:01,320
Hello, everyone.

2
00:00:01,770 --> 00:00:06,560
Today we show you how you can import a picture, then put it in your application.

3
00:00:06,990 --> 00:00:10,130
So to do that, we will use just the interlibrary.

4
00:00:10,170 --> 00:00:16,170
We don't we don't need another library because there is some functions that are already included in

5
00:00:16,170 --> 00:00:17,130
the ticket celebrity.

6
00:00:17,490 --> 00:00:18,420
So we will use it.

7
00:00:19,230 --> 00:00:21,450
But there is some conditions I will tell you about.

8
00:00:21,780 --> 00:00:26,190
So the first thing that we need to do is to create our own window.

9
00:00:26,220 --> 00:00:34,590
So from trying to import everything, then we will create the roots, be called.

10
00:00:36,810 --> 00:00:42,720
Then we will put it as a main loop.

11
00:00:44,460 --> 00:00:46,950
Now we will change the name.

12
00:00:47,100 --> 00:00:49,970
The size of our window will put it so.

13
00:00:49,980 --> 00:00:55,470
For example, Neomi today he would put it 500 by 500.

14
00:00:57,540 --> 00:01:00,160
OK, now we will start our program.

15
00:01:00,360 --> 00:01:02,790
So we will run it to see the window.

16
00:01:03,150 --> 00:01:04,120
This is our window.

17
00:01:04,650 --> 00:01:11,300
No, if we want to import the picture, we will use a function called photo image.

18
00:01:11,610 --> 00:01:16,940
This function is already included in the interlibrary, so we will just use it.

19
00:01:17,160 --> 00:01:26,250
But the condition is if we have a picture with extension PMG or GBG or etc., we can't use it with this

20
00:01:26,250 --> 00:01:29,690
function dysfunction except just the T the extension gif.

21
00:01:29,970 --> 00:01:35,540
So if we have a picture with the extension gif, we can use it with this function.

22
00:01:35,820 --> 00:01:39,470
But if we have another extension, we can't use it.

23
00:01:39,480 --> 00:01:41,520
But there is no problem for this.

24
00:01:41,730 --> 00:01:43,310
There is, for example, this website.

25
00:01:43,530 --> 00:01:47,940
You can convert any picture you have with any extension.

26
00:01:48,060 --> 00:01:50,660
You can convert it to a give and for free.

27
00:01:51,090 --> 00:01:58,740
So because using a picture in application, we we don't need to have a bank or etc. we just need to

28
00:01:58,740 --> 00:02:03,720
make a picture so you can you can convert it, then use it for your app.

29
00:02:04,050 --> 00:02:10,400
You don't you don't need to have to use another library and you will make it so difficult.

30
00:02:10,650 --> 00:02:13,890
So we will import the picture.

31
00:02:13,890 --> 00:02:22,610
And after that I will show you how bucket so to use the function photo image to import our picture,

32
00:02:22,630 --> 00:02:25,090
we need to to put this picture in a variable.

33
00:02:25,110 --> 00:02:27,260
Then we will work with this variable as always.

34
00:02:27,600 --> 00:02:30,510
So we will call our variable, for example, picture.

35
00:02:33,060 --> 00:02:39,540
Then we will use the function photo image, so photo image, this is the function here, we just need

36
00:02:39,540 --> 00:02:41,740
to write the keyword file.

37
00:02:42,240 --> 00:02:44,420
So read file equal.

38
00:02:44,820 --> 00:02:49,350
Then he will write the back of the Bathory, the part of our picture.

39
00:02:49,740 --> 00:02:54,010
So here we have this is my picture, for example, for Instagram.

40
00:02:54,480 --> 00:02:57,030
So this is our my picture.

41
00:02:57,030 --> 00:03:00,680
I just I already converted to give gift extension.

42
00:03:01,140 --> 00:03:08,340
So here I would like just the name of this picture, which is and stop point gif.

43
00:03:08,650 --> 00:03:10,170
This is our picture.

44
00:03:10,770 --> 00:03:17,490
So here we have we have included the picture and we we put it in the picture very.

45
00:03:18,210 --> 00:03:21,420
Now we just need to put it in the label.

46
00:03:21,450 --> 00:03:24,650
After that, we will back it to do the application.

47
00:03:24,930 --> 00:03:32,760
So as we did before a label, we use the labels to put a text and make some editing on it.

48
00:03:33,120 --> 00:03:38,250
But we can need we can use the label function even with the picture.

49
00:03:38,580 --> 00:03:48,090
So here we will give it a name for the for example, BIC equal the function label here.

50
00:03:48,150 --> 00:03:56,580
As always, we just need rules, which means that this this label is special to the root root application.

51
00:03:56,910 --> 00:03:58,000
Or which window.

52
00:03:58,210 --> 00:03:58,740
No.

53
00:03:59,040 --> 00:04:06,930
Here we write the keyword image before we just before we not text and we put the text, but now we will

54
00:04:06,930 --> 00:04:09,360
use a picture or an image.

55
00:04:09,660 --> 00:04:13,730
So we just read it, we just write the keyword image.

56
00:04:14,460 --> 00:04:20,510
Now here we we we will write the name of the variable that has our picture.

57
00:04:20,760 --> 00:04:24,950
So our picture is already in the variable picture.

58
00:04:25,500 --> 00:04:28,010
So we just read it just right here picture.

59
00:04:28,320 --> 00:04:35,480
So we have the label function then deludes, which means that this label is sufficient for the roots.

60
00:04:36,120 --> 00:04:41,800
Then the keyword image equals picture the name of the variable that has our picture.

61
00:04:42,480 --> 00:04:46,260
Now if we are on our program, we will see nothing because we didn't like it.

62
00:04:46,770 --> 00:04:52,070
So we just need here to write that book.

63
00:04:53,760 --> 00:04:59,090
And here we will see our picture in the in the in the window.

64
00:04:59,460 --> 00:05:03,140
We can make some budding or for example.

65
00:05:03,160 --> 00:05:05,680
But X no I will use.

66
00:05:05,700 --> 00:05:09,520
But why they call for example.

67
00:05:10,290 --> 00:05:11,370
I will move it down.

68
00:05:13,210 --> 00:05:20,420
So then we with our program as you can see we moved it down.

69
00:05:21,540 --> 00:05:23,310
So that was for today.

70
00:05:23,340 --> 00:05:32,340
I, I, I show you how you can use pictures with your app, but without using any other libraries you

71
00:05:32,340 --> 00:05:40,670
can just use this library which is taking to and this website for example, to convert your pictures.

72
00:05:40,680 --> 00:05:44,310
There is a lot of websites that you can use, but I found this.

73
00:05:44,310 --> 00:05:46,230
It is very useful and for free.

74
00:05:46,560 --> 00:05:49,050
So you can use this for your images.

75
00:05:49,050 --> 00:05:53,460
And after that you put it in the variable here.

76
00:05:53,850 --> 00:05:58,570
Then you use the label function and call it here, then package.

77
00:05:59,130 --> 00:06:02,640
So I see you in the next video and stay safe by.
