Difference between revisions of "LeapFrog Pollux Platform: Create RGB Image"

From eLinux.org
Jump to: navigation, search
(Add Category Didj)
Line 1: Line 1:
How to make your own .rgb files
+
== Summary ==
 +
This is pretty simple, the 'imager' application wants raw 24bit files, R8G8B8, to do this I downloaded the popular image viewing package called Irfanview.  It has some editing features in it and it will let you save files in different formats too (as long as its got the necessary plugins for your file type).
  
I'd like to thank Nirvous, NullMoogleCable, PhillKll, Claude, JKent, Jburks, GrizzlyAdams and anyone I may have forgotten for their help :)
+
== Prerequisites ==
 +
[[Didj_USB_Mounting| Mount USB Drive]] (Didj)
 +
[[LeapFrog_Pollux_Platform:_Networking_Applications#SSH| Enable SSH]] (Explorers)
  
This is pretty simple, the didj 'imager' app. wants raw 24bit files, R8G8B8, to do this I downloaded the popular image viewing package called Irfanview. It has some editing features in it and it will let you save files in different formats too (as long as its got the necessary plugins for your file type).
+
== Software Needed ==
 
+
[http://www.irfanview.com/] (Windows)
It also wants the resolution to be <= 320x240, using 'imager', anything over this size will not display properly, anything below this size will be displayed cropped with the top left corner being the
 
screen anchor point.  Imager does not clear the screen before it displays an image, so if you don't want
 
the previous screen to show you should add borders where appropriate in your favourite image editor.
 
  
 +
== Hardware Needed ==
 +
[[LeapFrog_Pollux_Platform:_Console_Access| Console Access]]
  
 +
== Creating the Image ==
 +
The image should be 320x240, if it is bigger than this, it will not be displayed properly. Any image under this size will will be display as is, and oriented at the top left 0,0 coordinates.
  
 +
imager will not blank the screen before showing your image, so if your image is smaller than the recommended size what ever was on the screen previously will display along the bottom and right edges, where your image does not cover.
  
 +
== Convert to RGB ==
 
Steps needed to convert an image to .rgb
 
Steps needed to convert an image to .rgb
 
----------------------------------------
 
----------------------------------------
  
1. Download and install IrfanView
+
Open your image file in irfanview
  
2. Open your image file in irfanview
+
Go to the file menu and choose 'Save As'
  
3. go to the file menu and choose 'Save As'
+
Set the 'Save As Type' box to 'RAW -Raw image data' make sure the color order is set to 'RGB' and that the 'Interleaved' radio button is selected.
 +
 
 +
Double check your settings and hit the save button
  
4. set the 'Save As Type' box to 'RAW -Raw image data' make sure the color order is set to 'RGB' and that the 'Interleaved' radio button is selected.
+
Browse to where you saved the file and you should have a file with a .raw extension, change it to .rgb You can then unmount the partition or disconnect from SSH.
 
 
5. Double check your settings and hit the save button
 
  
6. browse to where you saved the file and you should have a file with a .raw extension, change it
+
Using the console to your device run the following command:
to .rgb
+
imager /dev/layer0 /path/to/your/image.rgb
 
7. connect to usb and enable mass storage with your favourite method (I use djsm) and copy over your shiny new .rgb file (Note: the usb storage on the Didj shows up in windows as X:, you are actually looking inside /Didj on the didj itself, so your file when you go to look for it will be in /Didj/WhereEverYouPutIt/Whateveritscalled.rgb)
 
 
8. come out of the didj folders in windows, disable usb mass storage
 
  
9. go to your terminal prompt on the didj and run the following command, make sure you substitute WhereEverYouPutIt/Whateveritscalled.rgb with the folder and filename that you chose in earlier steps:
+
You should now see your image on the screen.
imager /dev/layer0 /Didj/WhereEverYouPutIt/Whateveritscalled.rgb
 
  
10. Enjoy your picture.
 
 
[[Category:Didj]]
 
[[Category:Didj]]
 +
[[Category:Leapster Explorer]]
 +
[[Category:LeapPad Explorer]]
 +
[[Category:LeapFrog Pollux Platform]]

Revision as of 01:13, 23 July 2011

Summary

This is pretty simple, the 'imager' application wants raw 24bit files, R8G8B8, to do this I downloaded the popular image viewing package called Irfanview. It has some editing features in it and it will let you save files in different formats too (as long as its got the necessary plugins for your file type).

Prerequisites

Mount USB Drive (Didj) Enable SSH (Explorers)

Software Needed

[1] (Windows)

Hardware Needed

Console Access

Creating the Image

The image should be 320x240, if it is bigger than this, it will not be displayed properly. Any image under this size will will be display as is, and oriented at the top left 0,0 coordinates.

imager will not blank the screen before showing your image, so if your image is smaller than the recommended size what ever was on the screen previously will display along the bottom and right edges, where your image does not cover.

Convert to RGB

Steps needed to convert an image to .rgb


Open your image file in irfanview

Go to the file menu and choose 'Save As'

Set the 'Save As Type' box to 'RAW -Raw image data' make sure the color order is set to 'RGB' and that the 'Interleaved' radio button is selected.

Double check your settings and hit the save button

Browse to where you saved the file and you should have a file with a .raw extension, change it to .rgb You can then unmount the partition or disconnect from SSH.

Using the console to your device run the following command:

imager /dev/layer0 /path/to/your/image.rgb

You should now see your image on the screen.