Graphics design is an interesting topic. I enjoy it. It's also very interesting how I "discovered" how to make Glow Borders.
About six months ago I was doing research to make a black drop shadow for the normal image. I found an article on StackOverflow with a method of using a black mask (silhouette). It is drawn -2 pixels on each side smaller than the RGB image then offset 2 pixels down and over from the left. To complete the drop shadow do a Gaussian Blur in Paint.net.
I noticed that the alpha pattern of the drop shadow resembled the alpha dispersal of the glow mask, but the colors were the only difference. So I had an idea to try to make a mask for the Glow Border using glow colors then apply the Gaussian Blur in Paint.net. It seemed like the only logical way to make a Glow Border. But I only guessed at the colors.
But the pixel values in the resulting Glow Border didn't match the original sample from one of Ken's Icons. I tried several different times but nothing came close to the original values.
Out of frustration and desperation I contacted the great icon maker Ken Lester. I asked him what paint program he used, what his Glow mask looked like and what blur effect he used. He very graciously told me the technique and he provided a sample Glow Mask. The colors he used were very simple - white, yellow, orange. I wouldn't have thought to use white.
So he confirmed that I had the right idea
Edited by miker1264 on 19-12-2023 22:00, 10 months ago
It's an easy to use PNG Icon Maker. There are two display areas and two buttons. Drag-n-drop the Normal Image on the Left and Selected Image on the Right. Then choose Save Icon.
The Icon Info Button provides information about the Icon File and about the Icon Drop program.
Edited by miker1264 on 19-12-2023 19:56, 10 months ago
miker, perfect works very well.
Sorry for being fussy, for the future you could make some improvements, as you can see from the screenshot the top border disappears with my 48x47 images.
It would be nice if the program could resize the image to fit, another feature you could add is the .info suffix when saving.
What size are those icons (w, h) ? What is the screen font size ? I suspect the EraseRectangle coords are off by one or two pixels at top. It's easy to fix.
I have a Display_Rectangle function that draws a red rectangle that allows me to check EraseRectangle and Display_Image coords. The user needs to supply filenames.
Edited by miker1264 on 20-12-2023 11:25, 10 months ago
Miker i have also tried Ariel 12 fonts and the problem remains, I have also tried your icons and nothing changes, what fonts do you use? consider that many users use different fonts!
@AMIGASYSTEM - Miker i have also tried Ariel 12 fonts and the problem remains, I have also tried your icons and nothing changes, what fonts do you use? consider that many users use different fonts!
I'm using the fonts included with Icaros Desktop. The Arial Font shouldn't change from Icaros Desktop to AROS One x86. It should be the same font. So what causes the problem?
The thickness of the window borders for certain themes may be causing an offset issue that affects the EraseRectangle and DisplayImage.
In your screenshot the EraseRectangle function removed part of the display area on top and the icon images aren't centered from left to right. So it affects the horizontal and vertical coordinates.
I'll do more testing other window themes.
Edited by miker1264 on 20-12-2023 17:36, 10 months ago
Sometimes strange things happen, I noticed a problem on About AROS on AROS x86 v2.3, with the new core a very strange thing appeared, I'll prepare a small video and let's see who guesses the cause, it took me a few hours to find out! unsuspected cause!!!
Watch this attached video and try to guess who is causing the problem, basically the problem is only on the first run of About AROS, after that it always works fine
Miker the problem to "Icondrop" seems to be in the Theme's "Config" file !!!
I tried to replace the "Config" file with the one of the Theme that works fine, and "Icondrop" worked fine even with the Theme that didn't work before !
Which entry in the "Config" file could be causing the problem ?
@AMIGASYSTEM - Miker the problem to "Icondrop" seems to be in the Theme's "Config" file !!!
I tried to replace the "Config" file with the one of the Theme that works fine, and "Icondrop" worked fine even with the Theme that didn't work before !
Which entry in the "Config" file could be causing the problem ?
Post the config files so I can take a look.
You can view all discussion threads in this forum. You cannot start a new discussion thread in this forum. You cannot reply in this discussion thread. You cannot start on a poll in this forum. You cannot upload attachments in this forum. You can download attachments in this forum.