Welcome Guest! To enable all features, please Login or Register.



Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, November 1, 2017 12:46:49 PM(UTC)


Groups: Registered, Tech Support, Administrators
Posts: 56

The LEADTOOLS BumpMapCommand can be used to integrate an existing bump map with its corresponding texture map. Other parameters can be set as well, such as the brightness and direction of the light source. For more information on parameters, see the documentation page.

Here's an example that shows the BumpMapCommand in action:


         using (RasterCodecs codecs = new RasterCodecs())
            RasterImage image = codecs.Load(@"brick.jpg");
            RasterImage bumpmap = codecs.Load(@"brick-bmp.jpg");

            BumpMapCommand bmc = new BumpMapCommand();
            bmc.Azimuth = 5;
            bmc.Brightness = 20;
            bmc.BumpImage = bumpmap;
            bmc.BumpPoint = new LeadPoint(0, 0);
            bmc.Depth = 3;
            bmc.DestinationPoint = new LeadPoint(0, 0);
            bmc.Elevation = 20;
            bmc.Intensity = 0;
            bmc.LookupTable = null;
            bmc.Tile = true; 

            codecs.Save(image, @"brick-bumpmapped.jpg", image.OriginalFormat, 0);

I've attached the input and output images generated. The output can be modified by adjusting the parameters.

File Attachment(s):
brick.zip (263kb) downloaded 90 time(s).

Edited by moderator Wednesday, November 1, 2017 8:15:57 PM(UTC)  | Reason: Not specified

Nick Crook
Developer Support Engineer
LEAD Technologies, Inc.

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2018, Yet Another Forum.NET
This page was generated in 0.129 seconds.