Contents
- Usage
- Using the Library
- Using the Themes
- Using the Demo App
- Components
- Accordion
- AnimatedImage
- AutoComplete
- AutoFitText
- BarCode
- BitmapAdjustments
- ButtonBar
- Calculator
- Calendar
- CAPTCHA
- CarouselLayout
- CarouselList
- Clocks
- Colorizer
- ColorPicker
- ColorSpacePicker
- CompassContainer
- CoverflowLayout
- CoverflowList
- CursorManager
- DatePicker
- DockingCompassContainer
- Donut Chart
- ExpandingContainer
- FieldSet
- Filters
- FlexContextMenu
- FloatPaneControlBar
- Funnel Chart
- GraphicsEditor
- Heatmap
- HtmlDragDrop
- HtmlFrame
- HtmlGeolocation
- iCalendarParser
- iCalendarRecurrence
- IconButton
- Linear Gauges
- Magnifier
- Menu and MenuBar
- MiniViewport
- PackedLayout
- PackedList
- Pane
- PopUpButton
- ProgressDisplay
- Radar
- Radial Gauge
- Rating
- ReflectionContainer
- RichTextEditor
- RotaryField
- SafariMouseWheelFix
- Scroller
- Separators
- SliderField
- Sparklines
- TabPaneNavigator
- TextInput
- TimebarContainer
- Timeline
- TimeMachineLayout
- TimeMachineList
- TimePicker
- ToggleSwitchDesktop
- TransformContainer
- TreeMap
- ViewStack
- WheelList
BitmapAdjustments
Overview
Functions used to apply effects to bitmap data.
Creating and Using the Functions
The BitmapAdjustments class is purely static and all functions work by returning the modified bitmap data. They do not function like flash filters and are not applied dynamically. Developers must manually apply the modified bitmap data.
See the ASDocs for the specifics of what adjustments are available.
Performance Implications
Some of the effects, especially the oil painting and kuwahara effect, can be extremely performance intensive. Huge images will simply cause the player to timeout. Therefore, either resize images to smaller dimensions before applying the effect, and then blow the bitmap data back up, or process large images line by line.
Sample Usage
<s:Image id="img" source="@Embed(source='sun.jpg')" /> <s:Button label="Pixelate" click="img.source = BitmapAdjustments.pixelate(img.bitmapData, 0, -1, PixelateTypes.RECTANGLE, 10, 0, 0, 0);" />
In the example above, clicking the button would convert the image to a pixelated version.
Example
See the BitmapAdjustments demo application for additional example code.
Back To Top