Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 04-14-2013, 03:57 PM   #1
ilyaluk
Junior Member
ilyaluk began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2013
Device: Kindle Keyboard 3g
Question How to change pixel colour

Hello.

Please show me how to change the pixel colour on screen.
I`ve googled for it, but didn`t find anything.

Thanks.
ilyaluk is offline   Reply With Quote
Old 04-14-2013, 04:28 PM   #2
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,819
Karma: 6314522
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by ilyaluk View Post
Hello.

Please show me how to change the pixel colour on screen.
I`ve googled for it, but didn`t find anything.

Thanks.
The pixels are made of tiny particles, 1/2 painted white and 1/2 black.

Them are your choices along with various combinations of each (16 combinations in all).

What do you mean by "change the pixel color on the screen" - - drain them out and paint them two other colors, then pour them back in?
knc1 is offline   Reply With Quote
Old 04-14-2013, 04:43 PM   #3
ilyaluk
Junior Member
ilyaluk began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2013
Device: Kindle Keyboard 3g
Quote:
Originally Posted by knc1 View Post
The pixels are made of tiny particles, 1/2 painted white and 1/2 black.

Them are your choices along with various combinations of each (16 combinations in all).

What do you mean by "change the pixel color on the screen" - - drain them out and paint them two other colors, then pour them back in?
Is there something like setPixelColour() in KDK, I want to draw picture from array, which contains pixels colours.
ilyaluk is offline   Reply With Quote
Old 04-14-2013, 04:51 PM   #4
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,819
Karma: 6314522
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by ilyaluk View Post
Is there something like setPixelColour() in KDK, I want to draw picture from array, which contains pixels colours.
No clue here, I can't think of anyone who has the KDK.

Why not look up the thread on the "Sketch" application, its code should give you some leads on how to draw your picture.
Adjust from the touch framebuffer to the K3 framebuffer for the differences in the two, of course.
knc1 is offline   Reply With Quote
Old 04-14-2013, 05:37 PM   #5
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,903
Karma: 6677557
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
You provide far too little information to expect a useful answer.

But since you're talking about KDK, I assume you mean Java Kindlets. Most of the standard AWT stuff is supported on the Kindles, so your best bet is to use this information. Note that the Graphics object also has a drawImage() method which supports many common image formats, so you don't have to paint every pixel manually - unless you want to, that is.
ixtab is offline   Reply With Quote
Old 04-15-2013, 12:49 PM   #6
aditya3098
Vala
aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.
 
aditya3098's Avatar
 
Posts: 592
Karma: 1578840
Join Date: Jan 2012
Location: Valinor
Device: Kindle touch (hacked to the core) 5.3.2.1
P.S This is called the kindle dev forum, but it is not about official kindlet development
aditya3098 is offline   Reply With Quote
Old 04-17-2013, 10:23 AM   #7
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by ilyaluk View Post
Hello.

Please show me how to change the pixel colour on screen.
I`ve googled for it, but didn`t find anything.

Thanks.
Here are some "native mode" (non KDK) kindle eink graphics programming examples:

Framebuffer graphics examples using only linux shell scripting:
http://www.mobileread.com/forums/sho...d.php?t=172182

Simple C code to play video on the eink screen for DX/DXG/K3/K4/K5/PW:
http://www.mobileread.com/forums/sho...d.php?t=177455

More C code for "game style" eink framebuffer video demos:
http://www.mobileread.com/forums/sho...d.php?t=176802
geekmaster is offline   Reply With Quote
Old 04-17-2013, 10:25 AM   #8
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,819
Karma: 6314522
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by geekmaster View Post
Here are native mode (non KDK) kindle eink graphics programming examples:

Framebuffer graphics examples using only linux shell scripting:
http://www.mobileread.com/forums/sho...d.php?t=172182

Simple C code to play video on the eink screen for DX/DXG/K3/K4/K5/PW:
http://www.mobileread.com/forums/sho...d.php?t=177455

More C code for "game style" eink framebuffer video demos:
http://www.mobileread.com/forums/sho...d.php?t=176802
Nice collection of links - maybe index the above post?
knc1 is offline   Reply With Quote
Old 04-17-2013, 10:26 AM   #9
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by knc1 View Post
Nice collection of links - maybe index the above post?
Those links were indexed long ago:
http://wiki.mobileread.com/wiki/Native_Index
geekmaster is offline   Reply With Quote
Old 04-18-2013, 10:50 AM   #10
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,819
Karma: 6314522
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by geekmaster View Post
Those links were indexed long ago:
http://wiki.mobileread.com/wiki/Native_Index
Yeah, right, nice choice of categories made on that page.
Anyone who views that page will immediately know who made those entries from the careful documentation and categorization.
knc1 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change colour of a title DigiCam1 Library Management 6 02-24-2013 01:37 PM
anyone else wish you could change the frontlighting colour? stewacide General Discussions 6 11-15-2012 07:46 AM
Is it possible to change Calibre-Server.exe to change to a service for Windows roadrunnerm Calibre 1 10-19-2012 07:44 PM
Can I Change the Page or Screen Colour K3 Dasha Amazon Kindle 12 03-08-2011 12:30 PM
Pixel Qi Balerion Amazon Kindle 8 08-14-2010 05:53 PM


All times are GMT -4. The time now is 01:11 PM.


MobileRead.com is a privately owned, operated and funded community.