Search found 17 matches

by Yaron
2018-08-30T10:09:30-07:00
Forum: Users
Topic: Convert Online?
Replies: 7
Views: 8091

Re: Convert Online?

Hello khoaow,

Thank you for your work. Appreciated.

Using

Code: Select all

convert Arrow.png -define h:format=rgba -depth 8 -size 14x14 Arrow.h
I get

Code: Select all

convert -verbose Arrow.png -define h:format=rgba -depth 8 -size 14x14 Arrow.h
Can you please change that?

Regards.
by Yaron
2018-05-02T11:58:04-07:00
Forum: Users
Topic: Convert a cursor to C++ Array
Replies: 6
Views: 4733

Re: Convert a cursor to C++ Array

Any or all of these could be converted to .h files.
I've tried converting to PNM and RGBA formats. I get a proper .h file but it doesn't work in my code.

Thanks.
by Yaron
2018-05-02T10:53:57-07:00
Forum: Users
Topic: Convert a cursor to C++ Array
Replies: 6
Views: 4733

Re: Convert a cursor to C++ Array

Those 2 arrays are sizes. If you take aero_link.cur from C:\Windows\Cursors, you get: aero_link.cur[0] CUR 48x48 48x48+0+0 8-bit sRGB 13942B 0.016u 0:00.014 aero_link.cur[1] CUR 32x32 32x32+0+0 8-bit sRGB 13942B 0.000u 0:00.000 but if you delete the 48x48, you get: aero_link.cur CUR 32x32 32x32+0+0 ...
by Yaron
2018-05-02T07:48:33-07:00
Forum: Users
Topic: Convert a cursor to C++ Array
Replies: 6
Views: 4733

Re: Convert a cursor to C++ Array

Thanks for replying. I appreciate it.

I've tried various combination but none works properly. I get a corrupt image.

I have 2 arrays:

Code: Select all

static BYTE XORMask[128]
and

Code: Select all

static BYTE ANDMask[128]
I have a .cur file. I suppose I should convert it to XOR Mask and AND Mask.
by Yaron
2018-05-02T05:13:50-07:00
Forum: Users
Topic: Convert a cursor to C++ Array
Replies: 6
Views: 4733

Convert a cursor to C++ Array

Hello, The following code is a cursor converted C++ Array. static BYTE XORMask[128] = { 0xff, 0xff, 0xff, 0xff, 0xf9, 0xff, 0xff, 0xff, 0xf0, 0xff, 0xff, 0xff, 0xf0, 0xff, 0xff, 0xff, 0xf0, 0xff, 0xff, 0xff, 0xf0, 0xff, 0xff, 0xff, 0xf0, 0x24, 0xff, 0xff, 0xf0, 0x00, 0x7f, 0xff, 0xc0, 0x00, 0x7f, 0x...
by Yaron
2017-03-17T15:37:11-07:00
Forum: Users
Topic: Convert Online?
Replies: 7
Views: 8091

Re: Convert Online?

Hello Bonzo and snibgo, Thank you both. I appreciate your help. I had forgotten about that but if you can find all the options you need give it a go - I can not see -define but it may be there somewhere. "define" and "depth". Also, I get an error when I enter "14x14" to...
by Yaron
2017-03-17T13:43:36-07:00
Forum: Users
Topic: Convert Online?
Replies: 7
Views: 8091

Re: Convert Online?

Hello Bonzo,

Thanks for replying. I appreciate it.

So I understand It can not be achieved with http://transloadit.imagemagick.org/Magi ... Studio.cgi, correct?

Best regards.
by Yaron
2017-03-17T08:55:36-07:00
Forum: Users
Topic: Convert Online?
Replies: 7
Views: 8091

Convert Online?

Hello,

I've installed ImageMagick for the following convert command.

Code: Select all

convert Bookmark14.png -define h:format=rgba -depth 8 -size 14x14  Bookmark14.h
(Thanks to glennrp).

Is it possible to get that conversion online (i.e. without having ImageMagick installed on my machine).

Thank you.
by Yaron
2016-09-06T17:44:10-07:00
Forum: Users
Topic: [Solved] Convert a PNG image to a C++ Array
Replies: 15
Views: 28628

Re: [Solved] Convert a PNG image to a C++ Array

Hello snibgo,

I'd like to thank you again too. :)

Best regards.
by Yaron
2016-09-06T17:42:33-07:00
Forum: Users
Topic: [Solved] Convert a PNG image to a C++ Array
Replies: 15
Views: 28628

Re: [Solved] Convert a PNG image to a C++ Array

Hello glennrp,

Thanks again for your kind help. I do appreciate it.

Best regards.
by Yaron
2016-09-06T12:13:38-07:00
Forum: Users
Topic: [Solved] Convert a PNG image to a C++ Array
Replies: 15
Views: 28628

Re: Convert a PNG image to a C++ Array

Hello glennrp,

That works like a charm! Thank you very much indeed.

Allow me one more question:
Are you sure I can't use a 32bpp PNG for the conversion?
I've installed ImageMagick-7.0.3-0-Q8-x86-dll.exe.

Best regards.
by Yaron
2016-09-06T09:03:41-07:00
Forum: Users
Topic: [Solved] Convert a PNG image to a C++ Array
Replies: 15
Views: 28628

Re: Convert a PNG image to a C++ Array

The image displayed in Notepad++ is 14*14.
Thanks again.
by Yaron
2016-09-06T08:35:51-07:00
Forum: Users
Topic: [Solved] Convert a PNG image to a C++ Array
Replies: 15
Views: 28628

Re: Convert a PNG image to a C++ Array

Hello glennrp,

Thanks for replying. I appreciate it.
Assuming you have a 28x28 grayscale file.png,
I'm not a pro. :)
My image is 14*14. Should I change the canvas size to 28*28? Or do I completely misunderstand it?
by Yaron
2016-09-06T08:13:09-07:00
Forum: Users
Topic: [Solved] Convert a PNG image to a C++ Array
Replies: 15
Views: 28628

Re: Convert a PNG image to a C++ Array

Okay, so you want to swap out the image data from Notepad++ with your own image, yes?
Correct.
like 28*28 = 784 grayscale pixels.
Do you mean setting my PNG canvas size to 28*28?

Thanks.
by Yaron
2016-09-06T07:42:17-07:00
Forum: Users
Topic: [Solved] Convert a PNG image to a C++ Array
Replies: 15
Views: 28628

Re: Convert a PNG image to a C++ Array

Notepad++ uses the data in ScintillaEditView.cpp:

Code: Select all

execute(SCI_MARKERDEFINERGBAIMAGE, MARK_BOOKMARK, reinterpret_cast<LPARAM>(bookmark14));
So, how do I convert my PNG to the

Code: Select all

static const unsigned char bookmark14[784] = {
format?

Thanks again. I appreciate your help.