LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-30-2014, 01:15 AM   #1
cin_
Member
 
Registered: Dec 2010
Posts: 281

Rep: Reputation: 24
Manipulating The Display Pixel By Pixel :: Low Level


i want to alter the contents of my computer screen..

i am flying blind on this..
what steps must i take?

..

i have thought to use a series of javascript libraries to utilise the browser as a windowed screen,
and simply manipulate from there,
but this introduces a great deal of overhead

can i get to the primary screen?
how do i manipulate what is being shown to me pixel by pixel?

currently i am seeing a resolution of 1280x720 on my computer screen,
many different things are running to fill up my screen right now: a browser, a couple terminals, vlc..

how can i tell pixel 34,17 of what i am seeing right now to swap values with the pixel at 117,334?

Last edited by cin_; 08-30-2014 at 01:15 AM. Reason: gramm`err
 
Old 08-30-2014, 03:51 AM   #2
jessetaylor84
Member
 
Registered: Jan 2014
Location: Olympia, WA
Distribution: Debian / Tails
Posts: 47

Rep: Reputation: 10
Are you already familiar with the contents of the section titled "Pixels and Colors" in this article?
 
Old 08-31-2014, 10:14 PM   #3
cin_
Member
 
Registered: Dec 2010
Posts: 281

Original Poster
Rep: Reputation: 24
X

yeah, i wanted to remain platform agnostic as i could

i was thinking about openGL as an option or SDL

just hoping someone might have some experience in this area

Last edited by cin_; 08-31-2014 at 10:15 PM. Reason: gramm`err
 
Old 08-31-2014, 11:09 PM   #4
jessetaylor84
Member
 
Registered: Jan 2014
Location: Olympia, WA
Distribution: Debian / Tails
Posts: 47

Rep: Reputation: 10
With OpenGL you can use glReadPixels() and glDrawPixels()

As far as SDL, check out this example code.

Last edited by jessetaylor84; 08-31-2014 at 11:11 PM.
 
  


Reply

Tags
compositor, pixels, screen, window


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Why Torvalds loves the Chromebook Pixel: It's all about the display LXer Syndicated Linux News 0 04-01-2013 08:02 AM
Pixel Qi E-ink mjolnir General 0 08-17-2011 01:42 PM
LXer: Android tablet sports Pixel Qi dual-mode display LXer Syndicated Linux News 0 01-14-2010 06:20 AM
Sub-pixel Hinting arubin Slackware 2 01-08-2008 01:34 PM
Display resolution too low, but pixel dimensions OK pingswept Linux - Hardware 3 03-15-2006 09:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration