×

Discussion Board

Search:

Type: Posts; User: ee7drs; Keyword(s):

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    6,512

    Re: Coordinate transformation

    The following snippet will draw a section of original_image into screen_image, where the offsets are the co-ordinates in the original image where the top left corner pixel of screen_image is assumed...
  2. Replies
    3
    Views
    6,512

    Re: Coordinate transformation

    It depends on how you are displaying the image. The simplest option is to display it without scaling but only display as much as will fit on screen and keep track of where the origin of the screen...
  3. Replies
    7
    Views
    8,544

    Re: A simple drawing program

    Hi RICH,

    I use another thread to capture key inputs and update some globals then notify the UI (main) thread to update. It's not a clean way to do things but it works. If you want more info on...
  4. Replies
    4
    Views
    8,085

    Re: Loading Icons from MBM

    Here's my code for producing MBM/Icon files.
    The parameters are:
    fn = filename to create
    img_list = a list of 'RGB' and '1' type images
    rom = True to produce a ROM/ClipArt type MBM, False to...
  5. Replies
    4
    Views
    8,085

    Re: Loading Icons from MBM

    Oops, wasn't using UNICODE filename.
    Having had a quick look at the source code the error could be more useful if it was something like 'expected valid icon file name'. Also seems a bit dodgy...
  6. Replies
    4
    Views
    8,085

    Re: Loading Icons from MBM

    I've updated my code to generate ROM type MBMs (ClipArt to you Psioneers) but the emulator and real interpreter still give the same error despite MBMViewer still being able to view the contents...
  7. Replies
    4
    Views
    8,085

    Loading Icons from MBM

    Hi,

    I'm trying to load an Icon from an MBM but get:
    TypeError: expected valid icon file

    MBMViewer accepts the MBM file as valid and displays it's content fine and bmconv splits it fine. I have...
  8. Replies
    7
    Views
    8,544

    A simple drawing program

    Hi,

    I've written a simple drawing program, it can:
    - draw straight lines, ellipses, rectangles
    - add text
    - change line and fill colour
    - change the size of the picture
    - save/load PNG...
Results 1 to 8 of 8