Recent

Author Topic: Bevel Maker: Finally Got it Working Correctly YAY !  (Read 1476 times)

Boleeman

  • Hero Member
  • *****
  • Posts: 833
Bevel Maker: Finally Got it Working Correctly YAY !
« on: June 10, 2024, 02:50:58 pm »
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.
« Last Edit: June 12, 2024, 11:09:45 am by Boleeman »

Boleeman

  • Hero Member
  • *****
  • Posts: 833
Re: Bevel Maker: For Png images
« Reply #1 on: June 11, 2024, 03:37:49 pm »
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)
« Last Edit: June 11, 2024, 03:44:04 pm by Boleeman »

Dzandaa

  • Sr. Member
  • ****
  • Posts: 409
  • From C# to Lazarus
Re: Bevel Maker: For Png images Getting Results Manually
« Reply #2 on: June 11, 2024, 08:17:20 pm »
Hi,

@Boleeman

Just a quick test with BGRABitmap:

Have a nice day.

B->
Regards,
Dzandaa

Boleeman

  • Hero Member
  • *****
  • Posts: 833
Re: Bevel Maker: For Png images Getting Results Manually
« Reply #3 on: June 12, 2024, 08:20:56 am »
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)
« Last Edit: June 12, 2024, 08:30:45 am by Boleeman »

Boleeman

  • Hero Member
  • *****
  • Posts: 833
Re: Bevel Maker: Finally Got it Working YAY !
« Reply #4 on: June 12, 2024, 11:02:33 am »
Changed a few things to make the bevel work better.

2 settings:

One for light backgrounds
One for dark backgrounds
« Last Edit: June 12, 2024, 11:19:48 am by Boleeman »

 

TinyPortal © 2005-2018