Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / How to capture image without turn to camera screen and image processing in AGK Basic

Author
Message
Ton
9
Years of Service
User Offline
Joined: 24th Aug 2015
Location:
Posted: 24th Aug 2015 18:45
I want to auto capture image without turn to camera capture screen and I want to get pixel color from that image.

I use AppGameKit Basic in AppGameKit 2 IDE.
Thanks
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 24th Aug 2015 19:08 Edited at: 24th Aug 2015 19:08
You can render to image by using:

CreateRenderImager()
SetRenderToImage()
...
SetRenderToScreen()

To get a pixel colour, you need to CreateMemblockFromImage(), and then pick out the bytes from the data top calculate the colour. This is quite an advanced method, but possible. The help files tell you how the image data is constructed in the memblock.

Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
Ton
9
Years of Service
User Offline
Joined: 24th Aug 2015
Location:
Posted: 24th Aug 2015 19:13
Thanks you very much. How about taking a photo from device's camera without turn to capture screen? How can I do that with AppGameKit Basic?
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 24th Aug 2015 23:09
i believe its not implemented for tier1 but a feature request.
the kickstarter project is still work in progress.
i like to have it too without os dialog for a barcode scan system.

AGK (Steam) V2 Beta .. : Windows 10 Pro, 8.1 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)

Login to post a reply

Server time is: 2024-11-16 20:53:54
Your offset time is: 2024-11-16 20:53:54