You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by pu...@apache.org on 2020/12/01 12:07:34 UTC
[royale-asjs] branch develop updated: Update UIComponent.as added
smoothBitmapContent
This is an automated email from the ASF dual-hosted git repository.
pushminakazi pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new f598f54 Update UIComponent.as added smoothBitmapContent
f598f54 is described below
commit f598f549da57d2610c08f7885d21a2ebfb399d86
Author: pashminakazi <42...@users.noreply.github.com>
AuthorDate: Tue Dec 1 17:07:24 2020 +0500
Update UIComponent.as added smoothBitmapContent
In Flex smoothBitmapContent was in SWFLoader and Image extends SWFLoader extends UIComponent,In Royale Image extends UIComponent So i added smoothBitmapContent in UIComponent
---
.../src/main/royale/mx/core/UIComponent.as | 51 ++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
index c2cc9d0..7b98edf 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
@@ -6264,6 +6264,57 @@ COMPILE::JS
dispatchEvent(new Event('visibleChanged'));
}
}
+
+ //In Flex smoothBitmapContent was in SWFLoader and Image extends SWFLoader extends UIComponent,In Royale Image extends UIComponent So i added smoothBitmapContent in UIComponent
+
+ //----------------------------------
+ // smoothBitmapContent
+ //----------------------------------
+
+ /**
+ * @private
+ * Storage for the smoothBitmapContent property.
+ */
+ private var smoothBitmapContentChanged:Boolean = false;
+ private var _smoothBitmapContent:Boolean = false;
+
+ [Bindable("smoothBitmapContentChanged")]
+ [Inspectable(category="General", defaultValue="false")]
+
+ /**
+ * A flag that indicates whether to smooth the content when it
+ * is scaled. Only Bitmap content can be smoothed.
+ * If <code>true</code>, and the content is a Bitmap then smoothing property
+ * of the content is set to <code>true</code>.
+ * If <code>false</code>, the content isn't smoothed.
+ *
+ * @default false
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public function get smoothBitmapContent():Boolean
+ {
+ return _smoothBitmapContent;
+ }
+
+ /**
+ * @private
+ */
+ public function set smoothBitmapContent(value:Boolean):void
+ {
+ if (_smoothBitmapContent != value)
+ {
+ _smoothBitmapContent = value;
+
+ smoothBitmapContentChanged = true;
+ invalidateDisplayList();
+ }
+
+ dispatchEvent(new Event("smoothBitmapContentChanged"));
+ }
}