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, 02: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, 03:28 PM   #2
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
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
Advert
Old 04-14-2013, 03: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, 03:51 PM   #4
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
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, 04: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,907
Karma: 6736092
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
Advert
Old 04-15-2013, 11:49 AM   #6
aditya3098
Guru
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.
 
Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
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, 09:23 AM   #7
geekmaster
Carpe diem, c'est la vie.
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: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
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:
https://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:
https://www.mobileread.com/forums/sho...d.php?t=177455

More C code for "game style" eink framebuffer video demos:
https://www.mobileread.com/forums/sho...d.php?t=176802
geekmaster is offline   Reply With Quote
Old 04-17-2013, 09:25 AM   #8
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
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:
https://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:
https://www.mobileread.com/forums/sho...d.php?t=177455

More C code for "game style" eink framebuffer video demos:
https://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, 09:26 AM   #9
geekmaster
Carpe diem, c'est la vie.
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: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by knc1 View Post
Nice collection of links - maybe index the above post?
Those links were indexed long ago:
https://wiki.mobileread.com/wiki/Native_Index
geekmaster is offline   Reply With Quote
Old 04-18-2013, 09:50 AM   #10
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by geekmaster View Post
Those links were indexed long ago:
https://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 12:37 PM
anyone else wish you could change the frontlighting colour? stewacide General Discussions 6 11-15-2012 06:46 AM
Is it possible to change Calibre-Server.exe to change to a service for Windows roadrunnerm Calibre 1 10-19-2012 06:44 PM
Can I Change the Page or Screen Colour K3 Dasha Amazon Kindle 12 03-08-2011 11:30 AM
Pixel Qi Balerion Amazon Kindle 8 08-14-2010 04:53 PM


All times are GMT -4. The time now is 05:58 AM.


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