Search found 1246 matches

by collectordave
Fri Sep 17, 2021 4:03 am
Forum: Coding Questions
Topic: Pressed / grid look
Replies: 9
Views: 950

Re: Pressed / grid look

@collectordave your example is defective...it does make 1 line of diamonds but does not fill the image Hi If you check your code the image you create is 100 wide and 40 high. My code use values for x between 0 and 100 and values for y between 0 and 40 filling the image. Now if you had read my post ...
by collectordave
Thu Sep 16, 2021 2:46 pm
Forum: Coding Questions
Topic: Pressed / grid look
Replies: 9
Views: 950

Re: Pressed / grid look

This draws diamonds choose how big: For x1 = 0 To tw Step 10 x2 = x1 + 10 LineXY(x1, 0, x2, 40, RGB(255,255,255)) Next x1 For x1 = 10 To tw Step 10 x2 = x1 - 10 LineXY(x1, 0, x2, 40, RGB(255,255,255)) Next x1
by collectordave
Thu Sep 16, 2021 2:28 pm
Forum: Mac OSX
Topic: Is it possible to use PureBasic on MacOS?
Replies: 4
Views: 1675

Re: Is it possible to use PureBasic on MacOS?

It is possible to use PureBasic on macOS. All of them including Big Sur on the M1 chip.
by collectordave
Sun Sep 05, 2021 3:42 pm
Forum: Tricks 'n' Tips
Topic: libVLC in pb
Replies: 10
Views: 2255

Re: libVLC in pb

Hi

How do I get this to work on the MAC?
by collectordave
Tue Aug 31, 2021 3:30 pm
Forum: Coding Questions
Topic: Reading POINTs from an image, to draw on another.
Replies: 16
Views: 2028

Re: Reading POINTs from an image, to draw on another.

Another example. If the user wants to put a smaller greyscale image inside the original image it can be done like this. UseJPEGImageDecoder() Global SourceImage.i,DisplayImage.i,NewImage.i Global FileName.s Global PRed.i,PGreen.i,PBlue.i OpenWindow(0,0,0,1600,560, "ImageCopyCols") CreateIm...
by collectordave
Tue Aug 31, 2021 2:58 pm
Forum: Coding Questions
Topic: Reading POINTs from an image, to draw on another.
Replies: 16
Views: 2028

Re: Reading POINTs from an image, to draw on another.

Isnt the DrawingBuffer() for images static? The device context isnt but the buffer should be. Not a question I would ask. Just processing a single image seems quick enough for me. UseJPEGImageDecoder() Global SourceImage.i,DisplayImage.i Global FileName.s Global PRed.i,PGreen.i,PBlue.i OpenWindow(0...
by collectordave
Tue Aug 31, 2021 6:34 am
Forum: Coding Questions
Topic: Reading POINTs from an image, to draw on another.
Replies: 16
Views: 2028

Re: Reading POINTs from an image, to draw on another.

Just another idea. If the second image is simply the first image processed then you do not need to draw the processed image onto a second image just display the processed image. Start/Stop Drawing only called once. Also if the original Image is to be used again so you do not wish to change the origi...
by collectordave
Tue Aug 31, 2021 6:10 am
Forum: Coding Questions
Topic: Reading POINTs from an image, to draw on another.
Replies: 16
Views: 2028

Re: Reading POINTs from an image, to draw on another.

If I understand correctly you want to read one image, process the individual pixels and write them to a second image. I would break it down to two steps. First process the source image colours Second write the source image to the second image. Maybe code like this:- UseJPEGImageDecoder() OpenWindow(...
by collectordave
Fri Aug 27, 2021 8:27 am
Forum: Coding Questions
Topic: run terminal command
Replies: 1
Views: 368

run terminal command

This always bugs me.

I start the terminal and run this
exiftool -UserComment /Users/dave/Documents/Testexif/482.jpg > /Users/dave/Documents/TestExif.txt"
works perfectly every time.

How can I use Runprogram to run that in the terminal and the close the terminal?
by collectordave
Thu Aug 26, 2021 3:54 pm
Forum: Tricks 'n' Tips
Topic: Module to easy use Exiftool in your application
Replies: 8
Views: 2539

Re: Module to easy use Exiftool in your application

Ah well getting there but run program will not run the terminal again

I run this in the terminal

exiftool -UserComment /Users/dave/Documents/Testexif/482.jpg > /Users/dave/Documents/TestExif.txt

works perfectly every time.


Tried umpteen ways of using run program and none of them work.
by collectordave
Thu Aug 26, 2021 2:15 pm
Forum: Tricks 'n' Tips
Topic: Module to easy use Exiftool in your application
Replies: 8
Views: 2539

Re: Module to easy use Exiftool in your application

Tried that and it certainly gets me to the main window but as soon as I load a jpg it just locks up.

I think I can issue the commands through running terminal and direct any output to a file.

Would be nice if I could get terminal output straight into my programme not to file but will see.


Thanks
by collectordave
Thu Aug 26, 2021 8:45 am
Forum: Tricks 'n' Tips
Topic: Module to easy use Exiftool in your application
Replies: 8
Views: 2539

Re: Module to easy use Exiftool in your application

Yes there are no .exe on the Mac.

used terminal to list the folder and it reports exiftool as a lib so tried.

Code: Select all

ImportC "/usr/local/bin/exiftool"

EndImport
which compiles ok but where do I go from here?
by collectordave
Thu Aug 26, 2021 7:58 am
Forum: Tricks 'n' Tips
Topic: Module to easy use Exiftool in your application
Replies: 8
Views: 2539

Re: Module to easy use Exiftool in your application

Old thread but landed here when searching for something to help me edit exif data in jpg files. I have downloaded the ExifTool PKG for the Mac and installed. When I run Exiftool from the terminal it appears to work, I have tried some of the read examples and they work in terminal. Every time I run t...
by collectordave
Fri Aug 20, 2021 4:31 pm
Forum: Coding Questions
Topic: Canvas drawing and web gadget
Replies: 0
Views: 1150

Canvas drawing and web gadget

I am using a canvas gadget to display an image using the following code.- StartVectorDrawing(CanvasVectorOutput(CanvasPageDesign,#PB_Unit_Millimeter)) MovePathCursor(40,40) DrawVectorImage(ImageID(0),255,100,40) StopVectorDrawing() This works well, the image is placed 40mm in and 40mm down and is th...