So in this video we'll be seeing how to take the screenshot from the, uh, from fuchsia.
So first we need to set the set process DP aware function to make the application aware of the computer.
So DPA stands for DOT printed.
It's going to tell us the resolution.
We can also get the most.
So it's like 800,000 DPA, etc. It can get the screen, the resolution as well.
So we need to call this function.
I have already imported this idea.
The setting in that is user that you do not be.
So we just imported this one and we are calling this.
And after this point, we will get the actual resolution that is 19201080.
In my case.
So when you do see a screen God now here we can see our screens off zero.
You can see our screens are zero.
It will correspond to the first two screens or we can see a primary screen dot bonds.
So this will return the rectangle object.
What a tangled odyssey.
These green bonds and these rectangle and the screen will be in the brain, not imaging and also drying.
And also we need to input these three also random locking drops process as well.
So we have this rectangle bond we can print with our dart of bit and our dart height.
So if I go and run this and I would get this.
ACTOR 19201080.
Let's go and comment on this one and let's see whether we get we can see we got the incorrect presentation.
So that's why we need to call this function to make the application aware of that.
So now we've got the correct presentation.
So now we need to create a new bitmap image because to new bitmap of we need to pass.
These dimensions are not with command and height command.
Big format but and here we need to use this to do ab rtp.
So this will create eight bids each are used for out of the red, green and blue.
So this should be good to go.
No, we need to fill this bitmap with the screenshot so we can do that.
First we need to create a graphics object.
Jesica's two graphics card from Image.
We need to choose the bitmap image.
And after that, what we can do is we can say direct copy from screen.
So within two or to the upper left two source and preferred destination.
That is this one.
Uh, so how you get this one using this, uh, order with an order type.
So order it.
Come on.
Our height and we can set zero command zero and the block region size so we can set ordered size.
So this will give you, uh, we can print order size as well.
This will give you in like, uh, uh, dictionary format so you can see, uh.
Width and height.
So we are going to filter this bitmap by these graphics that are from the starting to the actual size.
That is 1920100.
Now we can sell this map beat out sale.
We can choose.
We consider that a
jpg and we need to specify the image format.
The image format does not depend.
So let's go read this one and let's run this.
So we got the black screen.
We did some of the wrong.
So I have found a mistake.
It's not written hard.
It's actually the harder left.
So harder to write.
So we are Cowper.
Yes.
So now we should get because our left foot boot lifted out of boot the safe.
So sorry for that.
Now we need to run this one.
And here you can see the screenshot.
So this is a call to take the screenshot.
What we can do is we can add this code to our C2.
So I have already done this.
I'm just going to show you.
So let's run this, Sara.
And here we are sending the come and get screenshot.
The client that is our official client after.
Checking the commands to get screenshot, then it goes and the get screenshot function which is just
taking the screenshot.
But here what we have done is we have used this image converter to convert the bitmap into the image
bytes so we can do that as well here.
So instead of saving we can see the image converter i.e. equals to new image converter of our Nike dart
converter to.
So first we need to select the object that is.
Bitmap.
And second one is the destination that is above.
Mainstream.
So this will return.
Let's say you manage by size equals two.
We need to convert this image, right?
So we can go ahead and see this.
You're fired.
All right.
So we can now copy this one.
And changes tend to dampen so that there will be some difference.
You can also check the timestamp as well, then image by single saving into the fire.
What we can do is we can convert these to bioterror and now we are saving just to confirm whether we
can verify whether better you've read it or not.
So there is a tempo and you can see the current timestamp.
So we can successfully convert this, which may have been to a binary.
So now what I have done is I how modify or something that is I have converted this into the basis to
for encoding.
So this material to basic through encoding.
So I can easily transfer this to this of our our server.
So after that I have, I am decoding this here and then adding some timestamp.
So this is the timestamp.
If it gets the current boom and then I am appending rebranding the IP address.
So the final name will be the IP address, hyphen the timestamp, but jpg then it is a screenshot captured.
So that's to run this and agents.
So in the loop we have I have already took these pictures before.
Let's delete them.
And in these agents, we have this mask.
So get screenshot and you run this.
Click on the button.
You should see a new picture that is from 190160 100 and.
And, uh, this financial year, um.
Month and date, that's.
And then the, uh.
Let me see this.
I think it's our minute.
Second.
Uh, let me just confirm this.
Yes.
Hours, million seconds.
So it's three 2437.
So in this way, each image can be identified uniquely from which machine you got the screenshot from.
So that's all for this video.
In this video, we have seen how to take the screenshot from the feature and then we are converted that
to battery.
And then we have converted the battery to base64 a string so we can easily transmit over the socket.
And then we decoded to the image.