
Search found 91 matches
- Wed Mar 07, 2018 12:28 pm
- Forum: Coding Questions
- Topic: DrawVectorText(), DrawVectorParagraph() is different result
- Replies: 11
- Views: 2690
Re: DrawVectorText(), DrawVectorParagraph() is different res
Windows 7 x64 confirm:


- Mon Dec 05, 2016 10:26 am
- Forum: Bugs - IDE
- Topic: [IDE] Invalid Memory Access
- Replies: 6
- Views: 3573
[IDE] Invalid Memory Access
Run IDE > Form / New Form > Compile/Run (F5) > Close Window, then press any key (T for example) = crash.


- Thu Jan 14, 2016 7:55 am
- Forum: Announcement
- Topic: PureBasic Interface to OpenCV
- Replies: 885
- Views: 729537
Re: PureBasic Interface to OpenCV
Great! Thank you very much JHPJHP :).
Let me one more question:
I can set custom resolution after cvCreateCameraCapture():
cvSetCaptureProperty(*capture, #CV_CAP_PROP_FRAME_WIDTH, 1280)
cvSetCaptureProperty(*capture, #CV_CAP_PROP_FRAME_HEIGHT, 720)
But this will "reopen" camera again. Can I ...
Let me one more question:
I can set custom resolution after cvCreateCameraCapture():
cvSetCaptureProperty(*capture, #CV_CAP_PROP_FRAME_WIDTH, 1280)
cvSetCaptureProperty(*capture, #CV_CAP_PROP_FRAME_HEIGHT, 720)
But this will "reopen" camera again. Can I ...
- Wed Jan 13, 2016 4:41 pm
- Forum: Announcement
- Topic: PureBasic Interface to OpenCV
- Replies: 885
- Views: 729537
Re: PureBasic Interface to OpenCV
In your case working with multiple memory addresses is unavoidable, but maybe the following provides an alternative?
It's strange, but not luck:
IncludeFile "includes/cv_functions.pbi"
EnableExplicit
UseJPEGImageDecoder()
UseJPEGImageEncoder()
Global *g_image.IplImage
Procedure.i get_frame ...
It's strange, but not luck:
IncludeFile "includes/cv_functions.pbi"
EnableExplicit
UseJPEGImageDecoder()
UseJPEGImageEncoder()
Global *g_image.IplImage
Procedure.i get_frame ...
- Tue Jan 12, 2016 6:06 pm
- Forum: Announcement
- Topic: PureBasic Interface to OpenCV
- Replies: 885
- Views: 729537
Re: PureBasic Interface to OpenCV
The reason for separate memory addresses is because you're creating and releasing the web cam and query-image in the main loop.
- releasing the web cab also releases the query-image (releasing both can cause a memory fault)
Thanks for reply. But I should creating and releasing WebCam like this ...
- releasing the web cab also releases the query-image (releasing both can cause a memory fault)
Thanks for reply. But I should creating and releasing WebCam like this ...
- Mon Jan 11, 2016 6:51 pm
- Forum: Announcement
- Topic: PureBasic Interface to OpenCV
- Replies: 885
- Views: 729537
Re: PureBasic Interface to OpenCV
Can anyone help me with my code?
IncludeFile "includes/cv_functions.pbi"
EnableExplicit
UseJPEGImageDecoder()
UseJPEGImageEncoder()
Procedure.i get_frame(quality.i)
Protected rtrn.i
Protected *capture.CvCapture
;cvSetCaptureProperty(*capture.CvCapture, #CV_CAP_PROP_FRAME_WIDTH, 320 ...
IncludeFile "includes/cv_functions.pbi"
EnableExplicit
UseJPEGImageDecoder()
UseJPEGImageEncoder()
Procedure.i get_frame(quality.i)
Protected rtrn.i
Protected *capture.CvCapture
;cvSetCaptureProperty(*capture.CvCapture, #CV_CAP_PROP_FRAME_WIDTH, 320 ...
- Tue Apr 28, 2015 11:27 pm
- Forum: General Discussion
- Topic: Optional Arguments
- Replies: 6
- Views: 3801
Optional Arguments
Example of Procedure with some Optional Arguments:
Procedure.i proc(one.i, two.i = 1337, three.i = 1337)
Debug one
Debug two
Debug three
EndProcedure
What if I want call this procedure with declare only first (one) and third (three, optional) arguments? I do not want declare second (two ...
Procedure.i proc(one.i, two.i = 1337, three.i = 1337)
Debug one
Debug two
Debug three
EndProcedure
What if I want call this procedure with declare only first (one) and third (three, optional) arguments? I do not want declare second (two ...
- Mon Feb 02, 2015 2:35 pm
- Forum: Coding Questions
- Topic: CoInitialize_ & MessageRequester
- Replies: 2
- Views: 1811
CoInitialize_ & MessageRequester
Hello. Some Issue with CoInitialize_ API function and MessageRequester.
In this code CoInitialize_ return 0 (zero):
MessageBox_(0, "", "", 0)
Debug CoInitialize_(0)
Here CoInitialize_ return 1:
MessageRequester("", "")
Debug CoInitialize_(0)
What's wrong with MessageRequester?
In this code CoInitialize_ return 0 (zero):
MessageBox_(0, "", "", 0)
Debug CoInitialize_(0)
Here CoInitialize_ return 1:
MessageRequester("", "")
Debug CoInitialize_(0)
What's wrong with MessageRequester?
- Thu Feb 06, 2014 9:46 pm
- Forum: Feature Requests and Wishlists
- Topic: DrawText() — New Line Support (#CRLF$)
- Replies: 6
- Views: 3030
Re: DrawText() — New Line Support (#CRLF$)
Yes, but native will be better.
For example, with DrawTextEx() you also need to create "Ex" functions of TextWidth/Height, something else
.
Just my wish...
For example, with DrawTextEx() you also need to create "Ex" functions of TextWidth/Height, something else

Just my wish...
- Thu Feb 06, 2014 6:15 pm
- Forum: Feature Requests and Wishlists
- Topic: DrawText() — New Line Support (#CRLF$)
- Replies: 6
- Views: 3030
DrawText() — New Line Support (#CRLF$)
Hello. It would be nice if DrawText() function support New Line, like TextGadget() with #CRLF$.
Example (set #enable constant to 0 or 1):
#enable = 1 ;1 or 0
OpenWindow(0, #PB_Ignore, #PB_Ignore, 320, 280, "2D Text")
CreateImage(0, 320, 280)
StartDrawing(ImageOutput(0))
CompilerIf #enable ...
Example (set #enable constant to 0 or 1):
#enable = 1 ;1 or 0
OpenWindow(0, #PB_Ignore, #PB_Ignore, 320, 280, "2D Text")
CreateImage(0, 320, 280)
StartDrawing(ImageOutput(0))
CompilerIf #enable ...
- Tue Dec 03, 2013 10:08 pm
- Forum: Coding Questions
- Topic: PB Application & Windows 7 Sound Mixer
- Replies: 0
- Views: 863
PB Application & Windows 7 Sound Mixer
Hello.
I create application with Sound sub-system and planning to PlaySound's in some cases.
I want have possibility to Mute my application via Windows 7 Sound Mixer .
The problem that application added in Windows 7 Sound Mixer only after PlaySound() function execute. Example:
#ogg_file = "D ...
I create application with Sound sub-system and planning to PlaySound's in some cases.
I want have possibility to Mute my application via Windows 7 Sound Mixer .
The problem that application added in Windows 7 Sound Mixer only after PlaySound() function execute. Example:
#ogg_file = "D ...
- Mon Dec 02, 2013 2:24 pm
- Forum: Feature Requests and Wishlists
- Topic: PureBasic Editor improvement
- Replies: 14
- Views: 5275
Re: PureBasic Editor improvement
Please, add CTRL + SHIFT + ARROW_UP/ARROW_DOWN shortcut for move lines like in Notepad++:

Also:
CTRL + 0-9 NUMBER for select desired TAB like in FireFox:


Also:
CTRL + 0-9 NUMBER for select desired TAB like in FireFox:

- Sun Sep 08, 2013 2:55 pm
- Forum: 3D Programming
- Topic: VertexColor & Light
- Replies: 9
- Views: 4915
Re: VertexColor & Light
So, I found reason of error, this code:
Define current_mesh.i = CreateMesh(#PB_Any, #PB_Mesh_TriangleFan, #PB_Mesh_Static)
MeshVertexPosition(0, 0, 0)
MeshVertexColor(RGB(Random(255),Random(255),Random(255)))
MeshVertexPosition(-5, 5, 0)
MeshVertexColor(RGB(Random(255),Random(255),Random(255 ...
Define current_mesh.i = CreateMesh(#PB_Any, #PB_Mesh_TriangleFan, #PB_Mesh_Static)
MeshVertexPosition(0, 0, 0)
MeshVertexColor(RGB(Random(255),Random(255),Random(255)))
MeshVertexPosition(-5, 5, 0)
MeshVertexColor(RGB(Random(255),Random(255),Random(255 ...
- Sun Sep 08, 2013 2:15 pm
- Forum: 3D Programming
- Topic: VertexColor & Light
- Replies: 9
- Views: 4915
Re: VertexColor & Light
If you add:Num3 wrote:I always install DX9 side by side with DX11, give it a try, some dll might be needed from DX9 version.
Code: Select all
WorldShadows(#PB_Shadow_Modulative)
- Sun Sep 08, 2013 2:02 pm
- Forum: 3D Programming
- Topic: VertexColor & Light
- Replies: 9
- Views: 4915
Re: VertexColor & Light
Do you have the latest DirectX 9 version installed for your system?
Get the latest here http://filehippo.com/download_directx/
By the error window style I think you're on windows 2000.
I have DirectX 11. Windows 7.
In default "StaticGeometry.pb" example — all is okay, I can see shadows. But, if ...
Get the latest here http://filehippo.com/download_directx/
By the error window style I think you're on windows 2000.
I have DirectX 11. Windows 7.
In default "StaticGeometry.pb" example — all is okay, I can see shadows. But, if ...