Bitmapeffect bitmap is a simple pixel processing operation. It can present the following special effects.

Source: Internet
Author: User

 

Bitmapeffect bitmap is a simple pixel processing operation. It can present the following special effects.

BevelbitmapeffectConcave and convex Effects
BlurbitmapeffectBlur Effect
Dropshadowbitmapeffect
EmbossbitmapeffectEmbossed Effect
OuterglowbitmapeffectColor Halo Effect

Bevelbitmapeffect

<Button. bitmapeffect>

<Bevelbitmapeffect X: Name = "testbevelbitmap"

Bevelwidth = "20"

Edgeprofile = "curvedin"

Lightangle = "330"

Relief = "0.4"

Smoothness = "0.5"/>

</Button. bitmapeffect>

Bevelbitmapeffect attribute bevelwidth

Set the width of the concave-convex effect. The default value is 5.

Bevelbitmapeffect attribute edgeprofile

Set the curve of the concave-convex effect. The default value is
Linear

 

Bevelbitmapeffect attribute lightangle

The direction of the virtual light source. The valid range is 0-360 (degree). 0 indicates the right side of the object, and the subsequent value indicates the clockwise movement around the object. The concave-convex effect shadow is on the opposite side of the Light Projection position. The default value is 135.

Displays the value of this property, the direction of the light source. The concave-convex effect shadow is projected on the opposite side of the light angle.

Demonstrate the effect of this attribute:

 

Bevelbitmapeffect attribute relief

The fluctuating height of the concave and convex effects. The valid range is between 0 and 1, and 1 indicates the largest fluctuation (the lowest shadow ). The default value is 0.3.

Demonstrate the effect of this attribute

Bevelbitmapeffect attribute Smoothness

Specifies the smoothness of the shadow. The valid range is between 0 and 1, and 1 indicates the smoothest. The default value is 0.2.

 Blurbitmapeffect

<Button. bitmapeffect>

<Blurbitmapeffect X: Name = "testblurbitmapeffect"

Radius = "8"

Kerneltype = "Gaussian"/>

</Button. bitmapeffect>

 Blurbitmapeffect attribute radius

Used to blur the kernel radius. The larger the radius, the blurrier the effect. The default value is 5.

Blurbitmapeffect attribute kerneltype

Fuzzy Kernel type
Gaussian and box. The default value is Gaussian.

 

Dropshadowbitmapeffect

<Button. bitmapeffect>

<Dropshadowbitmapeffect X: Name = "testdropshadowbitmapeffect"

Color = "blue"

Shadowdepth = "20"

Noise = "0.5"

Opacity = "0.5"

Direction = "330"/>

</Button. bitmapeffect>

Color of the dropshadowbitmapeffect attribute

The color of the shadow. The default value is black.

Shadowdepth of the dropshadowbitmapeffect attribute

The distance between the plane of the projection object and the shadow plane. The valid value ranges from 0 to 300. The default value is 5.

Demonstrate the effect of this attribute

 

Noise of dropshadowbitmapeffect attribute

The noise level of the shadow. The valid value range is from 0 to 1. If the value is 0, it indicates no noise. If the value is 1, it indicates the maximum noise. If the value is 0.5, the noise is 50%. If the value is 0.75, the noise is 75%, and so on. The default value is 0.

Demonstrate the effect of this attribute:

 

Opacity of dropshadowbitmapeffect attribute

Opacity. The valid value range is from 0 to 1. If the value is 0, the shadow is completely transparent. If the value is 1, the shadow is completely opaque. If the value is 0.5, the shadow opacity is 50%; if the value is 0.725, the shadow opacity is 72.5%, and so on. A value smaller than 0 is regarded as 0, and a value greater than 1 is regarded as 1. The default value is 1.

Demonstrate the effect of this attribute:

 

Dropction of the dropshadowbitmapeffect attribute

Projection angle. The valid value range is from 0 to 360. If the value is 0, the direction is close to the right of the object. The subsequent values will move around the object in a counter-clockwise direction. For example, if the value is 90, the shadow is directly projected to the top of the object; if the value is 180, the shadow is directly projected to the left side of the object, and so on. The default value is 315.

Displays the value of this attribute, the direction in which the shadow is projected.Note: Unlike lightangle

Demonstrate the effect of this attribute:

 

Embossbitmapeffect

<Image. bitmapeffect>

<Embossbitmapeffect X: Name = "testembossbitmapeffect"

Lightangle = "120"

Relief = "0.1"/>

</Image. bitmapeffect>

Lightangle of the embossbitmapeffect attribute

The direction of the artificial light projected on the embossed object. The valid range is 0-360 (degree). 0 indicates the right side of the object, and the subsequent value indicates the clockwise movement around the object. The default value is 45.

Relief of embossbitmapeffect attribute

Relief ups and downs. Valid value range: 0-1, where 0 is the smallest and 1 is the largest. The default value is 0.44.

Outerglowbitmapeffect

<Textbox. bitmapeffect>

<Outerglowbitmapeffect X: Name = "testouterglowbitmapeffect"

Glowcolor = "red"

Glowsize = "30"

Noise = "0.5"

Opacity = "0.5" type = "parmname" text = "parmname"/>

</Textbox. bitmapeffect>

Glowcolor of outerglowbitmapeffect attribute

Halo light color. The default value is white.

Glowsize of the outerglowbitmapeffect attribute

The thickness of the Halo light. The valid value ranges from 1 to 199. The default value is 20.

Noise of outerglowbitmapeffect attribute

The granularity of Halo light (noise level ). The valid value range is from 0.0 to 1.0. If the value is 0.0, it indicates no noise. If the value is 1.0, it indicates the maximum noise. If the value is 0.5, the noise is 50%. If the value is 0.75, the noise is 75%, and so on. The default value is 0.0.

Opacity of outerglowbitmapeffect attribute

The opacity level of the light. If the value is 0, the Halo light is completely transparent. If the value is 1, the light is completely opaque. If the value is 0.5, the luminous transparency is 50%. If the value is 0.725, the luminous transparency is 72.5%, and so on. A value smaller than 0 is regarded as 0, and a value greater than 1 is regarded as 1. The default value is 1.

Bitmapeffect bitmap is a simple pixel processing operation. It can present the following special effects.

BevelbitmapeffectConcave and convex Effects
BlurbitmapeffectBlur Effect
Dropshadowbitmapeffect
EmbossbitmapeffectEmbossed Effect
OuterglowbitmapeffectColor Halo Effect

Bevelbitmapeffect

<Button. bitmapeffect>

<Bevelbitmapeffect X: Name = "testbevelbitmap"

Bevelwidth = "20"

Edgeprofile = "curvedin"

Lightangle = "330"

Relief = "0.4"

Smoothness = "0.5"/>

</Button. bitmapeffect>

Bevelbitmapeffect attribute bevelwidth

Set the width of the concave-convex effect. The default value is 5.

Bevelbitmapeffect attribute edgeprofile

Set the curve of the concave-convex effect. The default value is
Linear

 

Bevelbitmapeffect attribute lightangle

The direction of the virtual light source. The valid range is 0-360 (degree). 0 indicates the right side of the object, and the subsequent value indicates the clockwise movement around the object. The concave-convex effect shadow is on the opposite side of the Light Projection position. The default value is 135.

Displays the value of this property, the direction of the light source. The concave-convex effect shadow is projected on the opposite side of the light angle.

Demonstrate the effect of this attribute:

 

Bevelbitmapeffect attribute relief

The fluctuating height of the concave and convex effects. The valid range is between 0 and 1, and 1 indicates the largest fluctuation (the lowest shadow ). The default value is 0.3.

Demonstrate the effect of this attribute

Bevelbitmapeffect attribute Smoothness

Specifies the smoothness of the shadow. The valid range is between 0 and 1, and 1 indicates the smoothest. The default value is 0.2.

 Blurbitmapeffect

<Button. bitmapeffect>

<Blurbitmapeffect X: Name = "testblurbitmapeffect"

Radius = "8"

Kerneltype = "Gaussian"/>

</Button. bitmapeffect>

 Blurbitmapeffect attribute radius

Used to blur the kernel radius. The larger the radius, the blurrier the effect. The default value is 5.

Blurbitmapeffect attribute kerneltype

Fuzzy Kernel type
Gaussian and box. The default value is Gaussian.

 

Dropshadowbitmapeffect

<Button. bitmapeffect>

<Dropshadowbitmapeffect X: Name = "testdropshadowbitmapeffect"

Color = "blue"

Shadowdepth = "20"

Noise = "0.5"

Opacity = "0.5"

Direction = "330"/>

</Button. bitmapeffect>

Color of the dropshadowbitmapeffect attribute

The color of the shadow. The default value is black.

Shadowdepth of the dropshadowbitmapeffect attribute

The distance between the plane of the projection object and the shadow plane. The valid value ranges from 0 to 300. The default value is 5.

Demonstrate the effect of this attribute

 

Noise of dropshadowbitmapeffect attribute

The noise level of the shadow. The valid value range is from 0 to 1. If the value is 0, it indicates no noise. If the value is 1, it indicates the maximum noise. If the value is 0.5, the noise is 50%. If the value is 0.75, the noise is 75%, and so on. The default value is 0.

Demonstrate the effect of this attribute:

 

Opacity of dropshadowbitmapeffect attribute

Opacity. The valid value range is from 0 to 1. If the value is 0, the shadow is completely transparent. If the value is 1, the shadow is completely opaque. If the value is 0.5, the shadow opacity is 50%; if the value is 0.725, the shadow opacity is 72.5%, and so on. A value smaller than 0 is regarded as 0, and a value greater than 1 is regarded as 1. The default value is 1.

Demonstrate the effect of this attribute:

 

Dropction of the dropshadowbitmapeffect attribute

Projection angle. The valid value range is from 0 to 360. If the value is 0, the direction is close to the right of the object. The subsequent values will move around the object in a counter-clockwise direction. For example, if the value is 90, the shadow is directly projected to the top of the object; if the value is 180, the shadow is directly projected to the left side of the object, and so on. The default value is 315.

Displays the value of this attribute, the direction in which the shadow is projected.Note: Unlike lightangle

Demonstrate the effect of this attribute:

 

Embossbitmapeffect

<Image. bitmapeffect>

<Embossbitmapeffect X: Name = "testembossbitmapeffect"

Lightangle = "120"

Relief = "0.1"/>

</Image. bitmapeffect>

Lightangle of the embossbitmapeffect attribute

The direction of the artificial light projected on the embossed object. The valid range is 0-360 (degree). 0 indicates the right side of the object, and the subsequent value indicates the clockwise movement around the object. The default value is 45.

Relief of embossbitmapeffect attribute

Relief ups and downs. Valid value range: 0-1, where 0 is the smallest and 1 is the largest. The default value is 0.44.

Outerglowbitmapeffect

<Textbox. bitmapeffect>

<Outerglowbitmapeffect X: Name = "testouterglowbitmapeffect"

Glowcolor = "red"

Glowsize = "30"

Noise = "0.5"

Opacity = "0.5" type = "parmname" text = "parmname"/>

</Textbox. bitmapeffect>

Glowcolor of outerglowbitmapeffect attribute

Halo light color. The default value is white.

Glowsize of the outerglowbitmapeffect attribute

The thickness of the Halo light. The valid value ranges from 1 to 199. The default value is 20.

Noise of outerglowbitmapeffect attribute

The granularity of Halo light (noise level ). The valid value range is from 0.0 to 1.0. If the value is 0.0, it indicates no noise. If the value is 1.0, it indicates the maximum noise. If the value is 0.5, the noise is 50%. If the value is 0.75, the noise is 75%, and so on. The default value is 0.0.

Opacity of outerglowbitmapeffect attribute

The opacity level of the light. If the value is 0, the Halo light is completely transparent. If the value is 1, the light is completely opaque. If the value is 0.5, the luminous transparency is 50%. If the value is 0.725, the luminous transparency is 72.5%, and so on. A value smaller than 0 is regarded as 0, and a value greater than 1 is regarded as 1. The default value is 1.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.