Amazing project!
Looks like a step towards an autohotkey svg viewer / wrapper.
[Editor/Code Generator] Gdip Bitmap Maker ( v0.1.12 Feb 8th, 2024 )
Re: [Editor] Gdip Bitmap Maker
Updated to: v0.1.7 June 6th, 2019
---------------------------------------------------------------------------------------------------------------
- Fixed Major Memory Leak. (program should no longer crash after working on a bitmap for extended periods).
- Added refactored code submitted by Speed Master
- Added extra hotkeys submitted by Speed Master (See Speed Masters post on page 1 of this thread for hotkeys)
- Added a save progress bar to the save tab - can now see the save progress.
- Removed +AlwaysOnTop option.
- Added CREDITS DDL to tab 6. A temp way to credit people that have contributed to this project.
- Other small changes
------------------------------------------------------------------------------------------------------------------
If you know how to add it in, submit the code and i'll update the thread.
I don't think it will ever get to that point, but drawing with GDIP is made less of a chore with it.
If anyone has any comments, suggestions, examples that you have made using this, etc. Feel free to post them.
---------------------------------------------------------------------------------------------------------------
- Fixed Major Memory Leak. (program should no longer crash after working on a bitmap for extended periods).
- Added refactored code submitted by Speed Master
- Added extra hotkeys submitted by Speed Master (See Speed Masters post on page 1 of this thread for hotkeys)
- Added a save progress bar to the save tab - can now see the save progress.
- Removed +AlwaysOnTop option.
- Added CREDITS DDL to tab 6. A temp way to credit people that have contributed to this project.
- Other small changes
------------------------------------------------------------------------------------------------------------------
It is on my To-Do list, but I don't know when i'll get around to it.
If you know how to add it in, submit the code and i'll update the thread.
Thanks Frosti.
I don't think it will ever get to that point, but drawing with GDIP is made less of a chore with it.
If anyone has any comments, suggestions, examples that you have made using this, etc. Feel free to post them.
-
- Posts: 934
- Joined: 30 Sep 2017, 03:59
- Location: Romania
- Contact:
Re: [Editor] Gdip Bitmap Maker
Will you make the user interface more friendly? The YouTube video showed a very geeky interface ^_^
-------------------------
KeyPress OSD v4: GitHub or forum. (presentation video)
Quick Picto Viewer: GitHub or forum.
AHK GDI+ expanded / compilation library (on GitHub)
My home page.
KeyPress OSD v4: GitHub or forum. (presentation video)
Quick Picto Viewer: GitHub or forum.
AHK GDI+ expanded / compilation library (on GitHub)
My home page.
Re: [Editor] Gdip Bitmap Maker
I'm a geeky guy that likes his geeky interfaces.
So it will always have a geeky interface, cause that's how I like it, all geeky and what not, I just geek all out on it.
On the bright side, at least it's not nerdy...
-
- Posts: 934
- Joined: 30 Sep 2017, 03:59
- Location: Romania
- Contact:
Re: [Editor] Gdip Bitmap Maker
If you say so, I believe you it's not nerdy as well ^_^
However, congratulations on the project. It is truly remarkable!
Keep it up!
Best regards, Marius.
However, congratulations on the project. It is truly remarkable!
Keep it up!
Best regards, Marius.
-------------------------
KeyPress OSD v4: GitHub or forum. (presentation video)
Quick Picto Viewer: GitHub or forum.
AHK GDI+ expanded / compilation library (on GitHub)
My home page.
KeyPress OSD v4: GitHub or forum. (presentation video)
Quick Picto Viewer: GitHub or forum.
AHK GDI+ expanded / compilation library (on GitHub)
My home page.
Re: [Editor] Gdip Bitmap Maker
Example of using v0.1.7 to create a simple custom Switch (Checkbox) and then coding it into a class for easy use in a gui.
***Warning*** Features Cheesy Copyright Free Music
***Warning*** Features Cheesy Copyright Free Music
- Delta Pythagorean
- Posts: 627
- Joined: 13 Feb 2017, 13:44
- Location: Somewhere in the US
- Contact:
Re: [Editor] Gdip Bitmap Maker
@Hellbent
If it's not a bother, could you provide a copy of that recording script you used?
If it's not a bother, could you provide a copy of that recording script you used?
[AHK]......: v2.0.12 | 64-bit
[OS].......: Windows 11 | 23H2 (OS Build: 22621.3296)
[GITHUB]...: github.com/DelPyth
[PAYPAL]...: paypal.me/DelPyth
[DISCORD]..: tophatcat
Re: [Editor] Gdip Bitmap Maker
It is still in early development, just cramming in new things as I have been going along so there is no order to the ui yet, and there is still a number of features that need to get coded in.Delta Pythagorean wrote: ↑19 Jun 2019, 01:58If it's not a bother, could you provide a copy of that recording script you used?
If you use the "Use Ram" option, make sure that you do some testing to see where your limits are and that it is recording everything that you expect.
There are currently 3 hotkeys for testing.
^Numpad3:: Start recording
^Numpad4:: Stop recording
^Numpad5:: Pause recording
***Code Removed***
Last edited by Hellbent on 23 Jun 2019, 12:48, edited 2 times in total.
Re: [Editor] Gdip Bitmap Maker
@Hellbent Wow that recorder looks deffinitely promising! I was using ffmpeg script for that, but this saves using external programs for the task!
Re: [Editor] Gdip Bitmap Maker
For me the recorder is a must.
OBS (or any other recording software I've tried) often has a hard time on my computer just recording the scite editor let alone games or any number of other things. Plus this gives me lossless quality (Mind you, the video editor drops the quality a bit, but at least I start with pixel perfect image sequences).
I have been using a older version for about a year now and am upgrading it with some new features and making changes to things that I didn't really care for about the original.
Re: [Editor] Gdip Bitmap Maker
OBS unless you have hardware acceleration (QuickSync, Nvenc...) can tax the CPU heavily depending on the model.
I used to record with Mirillis Action, it records raw uncompressed footage (low cpu usage) and then you can export the videos (compress them) after you have finished the recording.
I used to record with Mirillis Action, it records raw uncompressed footage (low cpu usage) and then you can export the videos (compress them) after you have finished the recording.
Re: [Editor] Gdip Bitmap Maker
Thanks. I checked out Mirillis Action and it does seem to be an improvement.
- Delta Pythagorean
- Posts: 627
- Joined: 13 Feb 2017, 13:44
- Location: Somewhere in the US
- Contact:
Re: [Editor] Gdip Bitmap Maker
The recorder is probably the most reliable recorder I've seen. Most other recorders just kind of slow my computer down as you have said above, but most of the time they don't even capture. I have a feeling it's because I use an old windows 8.1 computer with a i3 intel processor (I think, I'd have to check, stickers are easily ripped off sometimes).
[AHK]......: v2.0.12 | 64-bit
[OS].......: Windows 11 | 23H2 (OS Build: 22621.3296)
[GITHUB]...: github.com/DelPyth
[PAYPAL]...: paypal.me/DelPyth
[DISCORD]..: tophatcat
Re: [Editor] Gdip Bitmap Maker
These are great things. Thanks for sharing with us. Where's your editor? Why can't I find a connection.
-
- Posts: 934
- Joined: 30 Sep 2017, 03:59
- Location: Romania
- Contact:
Re: [Editor] Gdip Bitmap Maker
@Hellbent
Pardon me for barging in again here, but perhaps you already saw my GDI+ based image viewer [ Quick Picto Viewer ]. I have a question for you , if you do not mind... Do you know how to retrieve the histogram of a pBitmap?
https://docs.microsoft.com/en-us/windows/win32/api/gdiplusheaders/nf-gdiplusheaders-bitmap-gethistogram
I chalked-up something of my own using GetPixel from the AHK GDI+ library, however it is slow ...
Thank you .
Best regards, Marius.
Pardon me for barging in again here, but perhaps you already saw my GDI+ based image viewer [ Quick Picto Viewer ]. I have a question for you , if you do not mind... Do you know how to retrieve the histogram of a pBitmap?
https://docs.microsoft.com/en-us/windows/win32/api/gdiplusheaders/nf-gdiplusheaders-bitmap-gethistogram
I chalked-up something of my own using GetPixel from the AHK GDI+ library, however it is slow ...
Thank you .
Best regards, Marius.
-------------------------
KeyPress OSD v4: GitHub or forum. (presentation video)
Quick Picto Viewer: GitHub or forum.
AHK GDI+ expanded / compilation library (on GitHub)
My home page.
KeyPress OSD v4: GitHub or forum. (presentation video)
Quick Picto Viewer: GitHub or forum.
AHK GDI+ expanded / compilation library (on GitHub)
My home page.
Re: [Editor] Gdip Bitmap Maker
Code: Select all
HistogramFormat := {ARGB: 0, PARGB: 1, RGB: 2, Gray: 3, B: 4, G: 5, R: 6, A: 7}
DllCall("gdiplus.dll\GdipBitmapGetHistogramSize", "UInt", HistogramFormat.RGB, "UInt*", numEntries)
MsgBox % "Bins total: " numEntries
sizeofUInt := 4
VarSetCapacity(ch0, numEntries * sizeofUInt)
VarSetCapacity(ch1, numEntries * sizeofUInt)
VarSetCapacity(ch2, numEntries * sizeofUInt)
DllCall("gdiplus.dll\GdipBitmapGetHistogram", "Ptr", myBitmap, "UInt", HistogramFormat.RGB, "UInt", numEntries, "Ptr", &ch0, "Ptr", &ch1, "Ptr", &ch2, "Ptr", 0)
Loop % numEntries
{
i := A_Index - 1
r := NumGet(&ch0+0, i * sizeofUInt, "UInt")
g := NumGet(&ch1+0, i * sizeofUInt, "UInt")
b := NumGet(&ch2+0, i * sizeofUInt, "UInt")
MsgBox % Format("
(LTrim
Intensity: {}
R: {} pixels
G: {} pixels
B: {} pixels
)", i, r, g, b)
}
-
- Posts: 934
- Joined: 30 Sep 2017, 03:59
- Location: Romania
- Contact:
Re: [Editor] Gdip Bitmap Maker
Thank you very much , @swagfag !!!
I managed to implement it into my script. I will post the new version tomorrow .
Please note, if I change the Histogram format, it seems to not yield proper values. I tried with Gray [3]... and ... R [ch0] yields immense numbers.
Despite that, I chose to feed it an already gray image, such that it works for me . However, this is not the proper way to do it...
Best regards, Marius.
I managed to implement it into my script. I will post the new version tomorrow .
Please note, if I change the Histogram format, it seems to not yield proper values. I tried with Gray [3]... and ... R [ch0] yields immense numbers.
Despite that, I chose to feed it an already gray image, such that it works for me . However, this is not the proper way to do it...
Best regards, Marius.
-------------------------
KeyPress OSD v4: GitHub or forum. (presentation video)
Quick Picto Viewer: GitHub or forum.
AHK GDI+ expanded / compilation library (on GitHub)
My home page.
KeyPress OSD v4: GitHub or forum. (presentation video)
Quick Picto Viewer: GitHub or forum.
AHK GDI+ expanded / compilation library (on GitHub)
My home page.
Re: [Editor] Gdip Bitmap Maker
this is how u call it for gray
DllCall("gdiplus.dll\GdipBitmapGetHistogram", "Ptr", myBitmap, "UInt", HistogramFormat.Gray, "UInt", numEntries, "Ptr", &ch0, "Ptr", 0, "Ptr", 0, "Ptr", 0)
DllCall("gdiplus.dll\GdipBitmapGetHistogram", "Ptr", myBitmap, "UInt", HistogramFormat.Gray, "UInt", numEntries, "Ptr", &ch0, "Ptr", 0, "Ptr", 0, "Ptr", 0)
if u didnt do it like this, ur arrays contain garbage valuesSpecifies that each pixel is converted to a grayscale value in the range 0 through 255, and then one histogram, based on those grayscale value, is returned. The bitmap is not permanently altered by the conversion to grayscale values; those values are calculated only for the purpose of creating the histogram. The grayscale histogram is written to the buffer pointed to by the channel0 parameter of the Bitmap::GetHistogram method. The channel1, channel2, and channel3 parameters must be set to NULL.
-
- Posts: 934
- Joined: 30 Sep 2017, 03:59
- Location: Romania
- Contact:
Re: [Editor] Gdip Bitmap Maker
Oh... My bad... Yes, you are correct. Thanks again.
-------------------------
KeyPress OSD v4: GitHub or forum. (presentation video)
Quick Picto Viewer: GitHub or forum.
AHK GDI+ expanded / compilation library (on GitHub)
My home page.
KeyPress OSD v4: GitHub or forum. (presentation video)
Quick Picto Viewer: GitHub or forum.
AHK GDI+ expanded / compilation library (on GitHub)
My home page.
-
- Posts: 188
- Joined: 08 Jul 2019, 05:37
- Contact:
Re: [Editor] Gdip Bitmap Maker
hello ,
hellbent ... this is an incredible tool
thanks to the effort u put in to create this
i downloaded the hb bitmap maker 0.1.7 but it seemed so small and some of the buttons and other stuff are misaligned on 1080p resolution
So took sometime to go through your codes (its really impressive) and adjusted the alignments to work with 1080p resolution
now working like charm
thankyou
hellbent ... this is an incredible tool
thanks to the effort u put in to create this
i downloaded the hb bitmap maker 0.1.7 but it seemed so small and some of the buttons and other stuff are misaligned on 1080p resolution
So took sometime to go through your codes (its really impressive) and adjusted the alignments to work with 1080p resolution
now working like charm
thankyou
Return to “Scripts and Functions (v1)”
Who is online
Users browsing this forum: Bing [Bot] and 100 guests