Author Topic: How to display a Pic  (Read 3619 times)

0 Members and 1 Guest are viewing this topic.

Offline Blue Raven

  • LV3 Member (Next: 100)
  • ***
  • Posts: 73
  • Rating: +3/-0
  • Trust me. I'm the Doctor.
    • View Profile
How to display a Pic
« on: January 15, 2012, 01:28:33 pm »
Hello everyone !
I have a question : is it possible to use a Pic variable from the calc and display it in an Axe program ? And if yes, how ? I tried a lot of stuff, but nothing worked.
Thanks a lot !
Apprenez l'Axe ! | DropBox


Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: How to display a Pic
« Reply #1 on: January 15, 2012, 01:29:27 pm »
Like a pic you made on calc?
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: How to display a Pic
« Reply #2 on: January 15, 2012, 01:30:35 pm »
The simplest way is to do
[Pic#]→GDB#
And when compiled GDB# should have the pic inside of it.
Vy'o'us pleorsdti thl'e gjaemue

Offline Blue Raven

  • LV3 Member (Next: 100)
  • ***
  • Posts: 73
  • Rating: +3/-0
  • Trust me. I'm the Doctor.
    • View Profile
Re: How to display a Pic
« Reply #3 on: January 15, 2012, 01:32:38 pm »
Ok, but how I can display it ? Pt-On doesn't work... Maybe Bitmap ?
Apprenez l'Axe ! | DropBox


Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: How to display a Pic
« Reply #4 on: January 15, 2012, 01:33:25 pm »
Copy([Pic0],L6,768)
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: How to display a Pic
« Reply #5 on: January 15, 2012, 01:33:27 pm »
You can copy it to your buffer of choice, with something like
Copy(GDB#,L6,768)
Vy'o'us pleorsdti thl'e gjaemue

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: How to display a Pic
« Reply #6 on: January 15, 2012, 01:33:51 pm »
You can copy it to your buffer of choice, with something like
Copy(GDB#,L6,768)

I ninja!  :ninja:
« Last Edit: January 15, 2012, 01:34:15 pm by saintrunner »
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline Blue Raven

  • LV3 Member (Next: 100)
  • ***
  • Posts: 73
  • Rating: +3/-0
  • Trust me. I'm the Doctor.
    • View Profile
Re: How to display a Pic
« Reply #7 on: January 15, 2012, 01:35:09 pm »
Ok, it works ! And Bitmap( works too btw...
Thanks a lot guys !
Apprenez l'Axe ! | DropBox


Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: How to display a Pic
« Reply #8 on: January 15, 2012, 01:37:36 pm »
Don't use Bitmap() unless you absolutely need it, which you don't for just displaying full-screen pictures. The Bitmap() routine adds over 200 bytes to your program.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: How to display a Pic
« Reply #9 on: January 15, 2012, 02:29:21 pm »
And if you just want to display it without it to go on the buffer (like a splash), you can do
[Pic#]->GDB#
DispGraph(GDB#)
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s