Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
19 June, 2013, 10:18:34 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1]   Go Down
  Print  
Author Topic: display a picture problem -  (Read 343 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
Cram
LV3 Member (Next: 100)
***
Offline Offline

Last Login: 25 April, 2012, 00:08:08
Date Registered: 18 December, 2011, 04:10:41
Posts: 49

Topic starter
Total Post Ratings: 0

View Profile
« on: 21 December, 2011, 06:16:48 »
0

hi, i simply want to display my picture that i converted to .8xi (named Pic1) but when i tried this:

1
2
3
4
[Pic1]->Pic0MN
Pic0MN->DispGraph
Pause 3600

it dont work, what is the right way?
Logged
epic7
Chopin!
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Today at 04:47:36
Date Registered: 22 October, 2011, 01:45:43
Location: Northeast US
Posts: 2181


Total Post Ratings: +122

View Profile
« Reply #1 on: 21 December, 2011, 06:18:46 »
+1

You have to use the copy command to copy to the buffer

Copy(Pic0MN,L6,768)
DispGraph
Pause 3600
« Last Edit: 21 December, 2011, 06:21:12 by epic7 » Logged



Current Projects:
TitleLanguageProgressStatus
DrillMiner    C (ndless)   40%         Paused

Spoiler for Programming languages I currently know:
Java (Learning in AP Comp Sci)
C (Specifically Ndless)
Unity JavaScript
LabView (For FIRST robotics)
z80 ASM (Just a little bit Tongue)
Cram
LV3 Member (Next: 100)
***
Offline Offline

Last Login: 25 April, 2012, 00:08:08
Date Registered: 18 December, 2011, 04:10:41
Posts: 49

Topic starter
Total Post Ratings: 0

View Profile
« Reply #2 on: 21 December, 2011, 06:23:40 »
0

yeah it work now thx for your fast answer! Grin
« Last Edit: 21 December, 2011, 06:24:02 by Cram » Logged
Hayleia
Programming Absol
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Last Login: Today at 07:18:30
Date Registered: 01 June, 2011, 20:12:47
Location: ud-ud ?
Posts: 2111


Total Post Ratings: +262

View Profile
« Reply #3 on: 21 December, 2011, 10:28:17 »
0

You have to use the copy command to copy to the buffer

Copy(Pic0MN,L6,768)
DispGraph
Pause 3600
With that method, you used the buffer. But if you just want to display a picture without erasing the buffer, then
   DispGraph(Pic0MN)
   Pause 3600
will do it
In fact, PTR->DispGraph was changed to DispGraph(PTR), this is why it didn't work
« Last Edit: 21 December, 2011, 10:28:41 by Hayleia » Logged





Spoiler for what I am according to...:
me: useless
Pokemon Test: an Absol
turiqwalrus: an eggplant
p2: A HUMAN BEING !
Blackpilar and p2: iplantonlyplantwantplanttoplantknowplantifplantyouplantareplantaplantboyplantorplantaplantgirlplant
click here to know where you got your last +1s
Cram
LV3 Member (Next: 100)
***
Offline Offline

Last Login: 25 April, 2012, 00:08:08
Date Registered: 18 December, 2011, 04:10:41
Posts: 49

Topic starter
Total Post Ratings: 0

View Profile
« Reply #4 on: 21 December, 2011, 19:47:25 »
0

ah ok both code is working but your take less places so it will be better thx Tongue
Logged
saintrunner
Custom Spriter: You ask it! I'll Make it!
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 09 March, 2013, 02:00:40
Date Registered: 27 October, 2011, 21:52:46
Location: Right here....I think?
Posts: 1776


Total Post Ratings: +97

View Profile WWW
« Reply #5 on: 21 December, 2011, 22:29:15 »
0

YEAH OPTIMIZATIONS!!!
Logged

My Sprites Thread   :Updated often Smiley for your viewing pleasure

GAMES:
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.24 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.