I was struggling yesterday with similar problem...
try InitSprite() before opening screen...
InitSprite()
CreateImage(0, 800, 480)
OpenWindow(0,0,0,800,480,"Fractal Lines",#PB_Window_SystemMenu)
OpenWindowedScreen(WindowID(0),0,0,800,480)
Search found 20 matches
- Fri Jul 25, 2014 4:11 pm
- Forum: Coding Questions
- Topic: Working with Images and Screen Graphics
- Replies: 9
- Views: 3501
- Thu Jul 24, 2014 7:15 pm
- Forum: Coding Questions
- Topic: Drawing Window mode & sync
- Replies: 4
- Views: 1355
Re: Drawing Window mode & sync
fcking cool. I overread the startdrawing(screenoutput()) instead of imageoutput... now works!
- Thu Jul 24, 2014 6:39 pm
- Forum: Coding Questions
- Topic: Drawing Window mode & sync
- Replies: 4
- Views: 1355
Re: Drawing Window mode & sync
InitKeyboard()
InitSprite()
CreateImage(0, 800, 480)
OpenWindow(0,0,0,800,480,"Fractal Lines",#PB_Window_SystemMenu)
OpenWindowedScreen(WindowID(0),0,0,800,480)
;StartDrawing(ScreenOutput())
frame=0
z0.w =100
camx.w=0
camy.w=-40
camz.w=0
Repeat
ClearScreen(RGB(0,255,0))
For i=0 To max ...
InitSprite()
CreateImage(0, 800, 480)
OpenWindow(0,0,0,800,480,"Fractal Lines",#PB_Window_SystemMenu)
OpenWindowedScreen(WindowID(0),0,0,800,480)
;StartDrawing(ScreenOutput())
frame=0
z0.w =100
camx.w=0
camy.w=-40
camz.w=0
Repeat
ClearScreen(RGB(0,255,0))
For i=0 To max ...
- Thu Jul 24, 2014 6:32 pm
- Forum: Coding Questions
- Topic: Drawing Window mode & sync
- Replies: 4
- Views: 1355
Re: Drawing Window mode & sync
well... actually 5.11 tells me to use initsprite() before?
- Thu Jul 24, 2014 3:46 pm
- Forum: Coding Questions
- Topic: Drawing Window mode & sync
- Replies: 4
- Views: 1355
Drawing Window mode & sync
Clearing screen or what is best practice having
I am opening a window with:
If CreateImage(0, 640, 480) And OpenWindow(0,0,0,640,480,"Fractal Lines",#PB_Window_SystemMenu)
...
and do simple 2d drawing (linexy) with
StartDrawing(ImageOutput(0))
StopDrawing()
but how can I clear the window and ...
I am opening a window with:
If CreateImage(0, 640, 480) And OpenWindow(0,0,0,640,480,"Fractal Lines",#PB_Window_SystemMenu)
...
and do simple 2d drawing (linexy) with
StartDrawing(ImageOutput(0))
StopDrawing()
but how can I clear the window and ...
- Mon May 12, 2014 7:03 pm
- Forum: Coding Questions
- Topic: loading images and mixing
- Replies: 18
- Views: 1382
Re: loading images and mixing
thx Bernd... got it... 
good thing is that when inserting plot or line that the coordinates are based on the active canvas.

good thing is that when inserting plot or line that the coordinates are based on the active canvas.
- Mon May 12, 2014 4:04 pm
- Forum: Coding Questions
- Topic: loading images and mixing
- Replies: 18
- Views: 1382
Re: loading images and mixing
ok...
so how would you then solve my potential task?
load different bitmaps on 1 screen (so I can see them). and then getting pixel values with a function and draw on the same screen all at aonce?
so how would you then solve my potential task?
load different bitmaps on 1 screen (so I can see them). and then getting pixel values with a function and draw on the same screen all at aonce?
- Mon May 12, 2014 4:02 pm
- Forum: Coding Questions
- Topic: loading images and mixing
- Replies: 18
- Views: 1382
Re: loading images and mixing
when I am using plot/point in that example Purebasic crashes.
- Mon May 12, 2014 3:56 pm
- Forum: Coding Questions
- Topic: loading images and mixing
- Replies: 18
- Views: 1382
Re: loading images and mixing
thanks... got it... could not test right now following...
when I do a color=point(x,y) I get the right color doesn't matter if I am over imagegadget1 or 2?
when I do a color=point(x,y) I get the right color doesn't matter if I am over imagegadget1 or 2?
- Mon May 12, 2014 12:11 pm
- Forum: Coding Questions
- Topic: loading images and mixing
- Replies: 18
- Views: 1382
Re: loading images and mixing
and how would this work with imagegadget?
- Mon May 12, 2014 9:57 am
- Forum: Coding Questions
- Topic: loading images and mixing
- Replies: 18
- Views: 1382
Re: loading images and mixing
thx. seem to work...
I thought that sprite is for "sprites" only 
one of my mistake was not saving the source code so the path to the pic did not work (but compiler did not throw an error...)


one of my mistake was not saving the source code so the path to the pic did not work (but compiler did not throw an error...)
- Mon May 12, 2014 9:33 am
- Forum: Coding Questions
- Topic: loading images and mixing
- Replies: 18
- Views: 1382
Re: loading images and mixing
Code: Select all
OpenScreen(1024,768,32,"test",RGB(0,0,0))
texture=LoadImage(#PB_Any,"neptunemap.jpg")
StartDrawing(ScreenOutput())
DrawImage(ImageID(texture), 0, 0)
StopDrawing()
Repeat:Until 1=0
- Mon May 12, 2014 9:31 am
- Forum: Coding Questions
- Topic: loading images and mixing
- Replies: 18
- Views: 1382
Re: loading images and mixing
thx. but I only get a white screen on OSX...
can not be so difficult...
Using 5.22.
can not be so difficult...

- Mon May 12, 2014 9:08 am
- Forum: Coding Questions
- Topic: loading images and mixing
- Replies: 18
- Views: 1382
Re: loading images and mixing
[img]
http://formatwar.net/forums/download/fi ... beaba4e79e
[/img]
so actually I want to place a texture where the "bars" are...
http://formatwar.net/forums/download/fi ... beaba4e79e
[/img]
so actually I want to place a texture where the "bars" are...
- Mon May 12, 2014 8:41 am
- Forum: Coding Questions
- Topic: loading images and mixing
- Replies: 18
- Views: 1382
loading images and mixing
I am using PureBasic for rapid development and testing for my 8bit 6502 projects.
What I am trying now for weeks is
having a screen open for gfx output, loading 2 images which I want to copy on the openened screen. these are textures where I refer to with point(x,y).
OpenScreen(640,480,32,"test ...
What I am trying now for weeks is
having a screen open for gfx output, loading 2 images which I want to copy on the openened screen. these are textures where I refer to with point(x,y).
OpenScreen(640,480,32,"test ...