Direct screen pixel/framebuffer access [closed] - video-capture

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I'd like to try and create a program playing a game. I.e. "a bot".
I want to be able to directly access the pixels on the screen. I.e. have my program "see" a game and then "make a move"(or at least draw a picture of what move it would make).
Both Windows and Linux advice is appreciated, though my guess is that it should be easier to do on Linux.
I'm guessing this could be done with some X/Gnome call?
I'm not afraid of C, even complex samples are welcome.

SDL is a cross-platform library that allows you to directly access framebuffer pixels. You can learn about accessing the pixels on screen through the pixel access example on the documentation wiki.
Generally speaking, bots don't see the game graphics but see the underlying data structure instead, unless you are trying to do something related to computer vision.

Related

Multiple programs on AVR atmega [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I want to make my Atmega robot to operate multiple modes (line following, obstacle avoidance, direct guidance from PC ) How can I load these separated programs on flash and how to select one of them when restarting the robot?
The easiest way is to make one big program with all the functionality of all the modes. On startup, in main() check if certain buttons are pressed, then choose which mode you are going to operate in. Then only use the functions and control mechanisms for that mode from then on. The rest of the code just sits there unused, but it would anyway in any other scheme.
There isn't an easy way to break the code into several different complete programs. For example, the vector table is fixed to be where it is. You would have to have the interrupt handlers check to see which mode is active then call the appropriate function for that mode.

Trading Terminal Objective-C [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
this is my first question here. I am trying to create an app for chart analysis in Objective-C.
Is there a good solution to show a stock chart in a view and at the same time be able to draw lines on this chart.
Just like in this picture shown: http://gb2007.deutsche-euroshop.de/des/annual/2007/gb//German/60/30/grafik_1_chartanalyse.gif
I am pretty new to programming and doing this exercise for a school project.
Feel free to present every solution i really need the right idea to succeed.
Seems like the "go to" solution (in other words, the one everyone runs to) is CorePlot, which you can find on GitHub at:
https://github.com/core-plot
And there's a RayWenderlich tutorial on stock charts with CorePlot, however his (or their) tutorials are more geared for iOS so you may have to do a bit of adjusting to make things work with MacOS. At least you'll be in the same neighborhood (using Objective-C, CorePlot, etc.).
I suspect any solution is going to be a bit "heavy" (or too much) for you to consider as a new programmer. Graphics & plotting within an app can be really intimidating, and you should try to get a couple other projects under your belt and in your portfolio first.

Files to request from designer for developer? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I've got a question that pertains to mobile graphic design & app development. I'll be using a graphic designer who will create the design, look and feel of the app. Then I was told to request layered .psd files to then pass on to the developer.
My question is: Are layered PSD files the only things that I need to request for the developer?
What other things should I consider?
Thank you all for your help...
They are good enough. Layers make your design more configurable. When you buy a layered PSD image you can easily get/delete/move an object (i.e. button) from that PSD file. Say that you have a button and you want to move it somewhere, you need a picture of that button (i.e. picture layer of an button) and layered PSD file contains that picture layer that you can easily obtain. Everything else is based on do you like the design or not. Simple as that.

how to programmatically add image/simple vectors to PDF? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I regularly process shipping labels that come from the shipping company as PDFs. Before printing them, we add to each one:
a white vector box to block out part of the label
an image of our logo in a different spot
These additions are always in exactly the same spot on the page.
I would love to be able to script this in some way. I'm pretty flexible with options -- I have an iMac, a Windows 7 machine and a Ubuntu server in the house.
Any suggestions?
I would say you have plenty of options here.
There are a lot of PDF libraries out there and many of them can read existing PDFs. If you are fine with commercial libraries and are willing to use .NET stack for the task then I can recommend you Docotic.Pdf library.
Here are samples:
How to draw geometrical shapes
how to use images in your PDF documents
Disclaimer: I work for the vendor of the library.

smartphones and buttons [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed last year.
Improve this question
The .net compact framework on smartphones doesn't know the button component, the reasons are unknown to me. My question is: how do people usually get over this problem? I have know smartphone near me to check out, only a pda phone, which of course has touch screen and supports the button component.
What would you do ?
The lack of buttons is intentional as it violates Microsoft guidelines for smartphone platform. Instead you should use the menu, which for a thumb operated device is faster. It also helps to provide a common interface for all phone's applications.
If you need to have a button, you can easily create one of your own. see also this question.