Search found 33 matches
- Mon Mar 20, 2023 10:23 am
- Forum: Feature Requests and Wishlists
- Topic: SQLite Zipfile Module
- Replies: 1
- Views: 529
- Tue Aug 03, 2021 4:02 pm
- Forum: Coding Questions
- Topic: Speed up processing a certain string
- Replies: 15
- Views: 3221
Re: Speed up processing a certain string
The pattern is roughly "word word number number number word number number"
e.g.: "D1 SOD523 285 705 0 DX.410052E 0 0"
Can I expect a regular expression to be faster yet flexible enough to cover up all my premises?
I took Stargates example and just let the regular expression replace your blanks ...
- Fri Oct 04, 2019 12:06 pm
- Forum: Coding Questions
- Topic: Fixing a bad column inside an image ?
- Replies: 29
- Views: 6503
Re: Fixing a bad column inside an image ?
I fiddled around with the image given above and found a solution at least for this image.
The thought behind is, that a whole column is too bright, so that its brightness should peek out if compared to the column before.
When found such a column, calculate the average of each pixel in the previous ...
The thought behind is, that a whole column is too bright, so that its brightness should peek out if compared to the column before.
When found such a column, calculate the average of each pixel in the previous ...
- Tue Jun 04, 2019 3:02 pm
- Forum: Feature Requests and Wishlists
- Topic: Count button for Find/Replace dialog
- Replies: 8
- Views: 3425
Re: Count button for Find/Replace dialog
+1
A temporary workaround could be to find and replace the same pattern and hit "replace all".
The find/replace dialogue will tell you how often it has replaced the searchpattern.
A temporary workaround could be to find and replace the same pattern and hit "replace all".
The find/replace dialogue will tell you how often it has replaced the searchpattern.
- Mon May 13, 2019 11:04 am
- Forum: General Discussion
- Topic: Read PDF and make a screenhsot
- Replies: 4
- Views: 2747
Re: Read PDF and make a screenhsot
If talking about Windows have a look at viewtopic.php?f=13&t=65776 .
With PDFium, you are able to load a PDF and render a page into an image.
With PDFium, you are able to load a PDF and render a page into an image.
- Fri Mar 08, 2019 11:56 am
- Forum: Coding Questions
- Topic: Multiplatform font compatible with Arial
- Replies: 2
- Views: 923
Re: Multiplatform font compatible with Arial
For not mixing up similar looking characters i use this one: https://github.com/adobe-fonts/source-code-pro
- Tue Dec 11, 2018 3:46 pm
- Forum: Coding Questions
- Topic: Cloud database?
- Replies: 12
- Views: 3572
Re: Cloud database?
...you could simply try https://www.obvibase.com/
No need for setting up services... simple access by web browser.
No need for setting up services... simple access by web browser.
- Mon Nov 12, 2018 1:15 pm
- Forum: Coding Questions
- Topic: Multithreaded read/write/parsing of files
- Replies: 4
- Views: 1662
Re: Multithreaded read/write/parsing of files
Using an SQLite database as skywalk mentioned should be especially usefull when parsing thru the file more than once.
Maybe it even works if you create an in-memory db (i never had such big amounts of data so i can't say if the SQLite-engine swaps data from RAM to disk in that case).
When using a ...
Maybe it even works if you create an in-memory db (i never had such big amounts of data so i can't say if the SQLite-engine swaps data from RAM to disk in that case).
When using a ...
- Tue Oct 23, 2018 1:30 pm
- Forum: Feature Requests and Wishlists
- Topic: Debug output window position, size and top ?
- Replies: 4
- Views: 1471
Re: Debug output window position, size and top ?
+1
maybe even with an additional possibility to choose the desktop?
i find it quite usefull to have the program running on one screen and the debugging done on a second.
maybe even with an additional possibility to choose the desktop?
i find it quite usefull to have the program running on one screen and the debugging done on a second.
- Tue Oct 23, 2018 1:26 pm
- Forum: Windows
- Topic: debug output error message.
- Replies: 2
- Views: 1816
Re: debug output error message.
Seems to be a security-feature of Windows, check https://leereid.wordpress.com/2012/03/2 ... rant-heap/ .jassing wrote: [12688] FTH: (12688): *** Fault tolerant heap shim applied to current process. This is usually due to previous crashes. ***
Maybe your .exe crashed several times while developing?
- Tue Oct 16, 2018 12:24 pm
- Forum: Windows
- Topic: Saving 8bit Raw data as 8bit 256 color JPG no way
- Replies: 8
- Views: 3249
Re: Saving 8bit Raw data as 8bit 256 color JPG no way
I have reviewed all posts regarding GDI+ and FreeImage but unfortunately didn't find anything useful.
I have Jpeg images encoded (in Photoshop) but this not the solution I need.
You could try libjpeg (or libjpeg-turbo) and include the .dll to your project or you could call some external tool to ...
I have Jpeg images encoded (in Photoshop) but this not the solution I need.
You could try libjpeg (or libjpeg-turbo) and include the .dll to your project or you could call some external tool to ...
- Mon Oct 15, 2018 11:21 am
- Forum: Windows
- Topic: Saving 8bit Raw data as 8bit 256 color JPG no way
- Replies: 8
- Views: 3249
Re: Saving 8bit Raw data as 8bit 256 color JPG no way
If PNG is a suitable image format for your demands, PB could deliver this out of the box...
The PB-Help says
The depth in which to save the image. Valid values are 1, 4, 8, 24 and 32. The default value is the original image depth. For now, only BMP and PNG encoders support palletized image format ...
The PB-Help says
The depth in which to save the image. Valid values are 1, 4, 8, 24 and 32. The default value is the original image depth. For now, only BMP and PNG encoders support palletized image format ...
- Fri Oct 12, 2018 11:41 am
- Forum: General Discussion
- Topic: Returning Numeric Values from a Database Column
- Replies: 5
- Views: 2080
Re: Returning Numeric Values from a Database Column
...you could use the SQL cast()-function in your queries to put a certain column into the data type your PB codes expects...
- Fri Oct 12, 2018 11:14 am
- Forum: Windows
- Topic: Saving 8bit Raw data as 8bit 256 color JPG no way
- Replies: 8
- Views: 3249
Re: Saving 8bit Raw data as 8bit 256 color JPG no way
Haven't tried it, but why not taking the BMP-image from memory with CatchImage() and saving it as JPG?
You could change your ProcedureDLL Save8bitImage() like this (untested!)
Protected img_no
UseJPEGImageEncoder()
...
CopyMemory(BmiInfo, *header, SizeOf(BITMAPINFOHEADER))
CopyMemory ...
You could change your ProcedureDLL Save8bitImage() like this (untested!)
Protected img_no
UseJPEGImageEncoder()
...
CopyMemory(BmiInfo, *header, SizeOf(BITMAPINFOHEADER))
CopyMemory ...
- Thu Oct 11, 2018 11:42 am
- Forum: Windows
- Topic: Does anyone know how to Change JPG/BMP DPI resolution
- Replies: 2
- Views: 1984
Re: Does anyone know how to Change JPG/BMP DPI resolution
I read the resolution from a JPG with the following code:
Procedure.s get_JPG_dpi(datei.s)
; DPI-Resolution from JPG-file
; -> xDPI|yDPI
Protected file_handle
Protected dummy.a, word.u
Protected tag.a
Protected seg_len.u
Protected jfif.s
Protected rev.w
Protected units.a
Protected ...
Procedure.s get_JPG_dpi(datei.s)
; DPI-Resolution from JPG-file
; -> xDPI|yDPI
Protected file_handle
Protected dummy.a, word.u
Protected tag.a
Protected seg_len.u
Protected jfif.s
Protected rev.w
Protected units.a
Protected ...