Skip to content

How can I create an "inner bevel" effect on text? #1579

Discussion options

You must be logged in to vote

@rambouillet There's no built in methods to do this I'm afraid.

I've done a little bit of research though into how this would be achieved.

Bevel effects can be achieved by the application of Bump or Normal Maps to a 2D image. You'd need an emboss convolution filter that can be generated and rotated by an arbitrary angle that is used to populate the map.

This library which is based on an old version of ImageSharp contains code to generate maps. It shouldn't be too hard to port that using an improved emboss filter.

I'm not 100% sure how the map is then applied to the image though to alter the brightness but this link seems to contain further information.
http://www.inf.ed.ac.uk/teaching/cou…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JimBobSquarePants
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants