Bevel Maker: Finally Got it Working Correctly YAY ! lazarus / 39-Graphics ---------------------------------------------------------------------- Boleeman · 2024-06-10 12:50 Made a bevel maker for png images, but the top and left edges don't seem to render nicely. The right and and bottom edges look OK, but the top and left edges seem to be over exposed in appearance. Go down to the bottom thread. ---------------------------------------------------------------------- Boleeman · 2024-06-11 13:37 Experimented a bit. A manual process to bevel but it works. Would be nice to automate it possibly using a BgraBmp. Brightness Relief of Bevel can be set with a TSpinedit. I found: If the edges are bright, bevel the Right and Bottom and the rotate 180 degrees and bevel again. If the edges are dark, bevel the Left and Top and the rotate 180 degrees and bevel again. The rotation of 180 degrees is quite slow. Some dark bevel joins at the corners seem to have a 1 pixel white gap at the mitre. The resulting beveled pngs are what I was after in effect. Tried to automate the process and got crappy results. Also tried sampling the brightness of the edges automatically, but that did not work as expected (but the manual process did work) ---------------------------------------------------------------------- Dzandaa · 2024-06-11 18:17 Hi, @Boleeman Just a quick test with BGRABitmap: Have a nice day. B-> ---------------------------------------------------------------------- Boleeman · 2024-06-12 06:20 Wow Dzandaa, what a great surprise. I like your version of the framed beveled border. A nice effect. I wanted to find other ways of making borders around pictures. Much appreciated DZandaa. Now this has got me thinking.... Just thought of a few other border types: A chiselled border effect going the other way to DZandaa's border. A ZigZag border. A Wavey border (like a Sine wave) ---------------------------------------------------------------------- Boleeman · 2024-06-12 09:02 Changed a few things to make the bevel work better. 2 settings: One for light backgrounds One for dark backgrounds