You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by yi...@apache.org on 2020/09/23 17:33:22 UTC
[royale-asjs] branch develop updated: Adding stub for Image.smooth
API
This is an automated email from the ASF dual-hosted git repository.
yishayw 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 84adfec Adding stub for Image.smooth API
84adfec is described below
commit 84adfec0315ce02cedb96ac301eaad7ea83f7a9b
Author: Yishay Weiss <yi...@yell.com>
AuthorDate: Wed Sep 23 18:33:02 2020 +0100
Adding stub for Image.smooth API
---
.../src/main/royale/spark/components/Image.as | 77 +++++++++++-----------
1 file changed, 39 insertions(+), 38 deletions(-)
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Image.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Image.as
index c914bc6..f0ce8ed 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Image.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Image.as
@@ -561,6 +561,45 @@ public class Image extends SkinnableComponent implements IImage
*/
//----------------------------------
+ // smooth
+ //----------------------------------
+
+ [Inspectable(category="General", defaultValue="false")]
+
+ /**
+ * @copy spark.primitives.BitmapImage#smooth
+ *
+ * @default false
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10
+ * @playerversion AIR 2.5
+ * @productversion Flex 4.5
+ **/
+ public function set smooth(value:Boolean):void
+ {
+ //if (imageDisplay)
+ //{
+ //imageDisplay.smooth = value;
+ //imageDisplayProperties = BitFlagUtil.update(imageDisplayProperties as uint,
+ //SMOOTH_PROPERTY_FLAG, true);
+ //}
+ //else
+ //imageDisplayProperties.smooth = value;
+ }
+
+ /**
+ * @private
+ public function get smooth():Boolean
+ {
+ //if (imageDisplay)
+ //return imageDisplay.smooth;
+ //else
+ //return imageDisplayProperties.smooth;
+ return false;
+ }
+ */
+ //----------------------------------
// bytesLoaded
//----------------------------------
@@ -899,44 +938,6 @@ public class Image extends SkinnableComponent implements IImage
}
*/
- //----------------------------------
- // smooth
- //----------------------------------
-
- [Inspectable(category="General", defaultValue="false")]
-
- /**
- * @copy spark.primitives.BitmapImage#smooth
- *
- * @default false
- *
- * @langversion 3.0
- * @playerversion Flash 10
- * @playerversion AIR 2.5
- * @productversion Flex 4.5
- public function set smooth(value:Boolean):void
- {
- if (imageDisplay)
- {
- imageDisplay.smooth = value;
- imageDisplayProperties = BitFlagUtil.update(imageDisplayProperties as uint,
- SMOOTH_PROPERTY_FLAG, true);
- }
- else
- imageDisplayProperties.smooth = value;
- }
- */
-
- /**
- * @private
- public function get smooth():Boolean
- {
- if (imageDisplay)
- return imageDisplay.smooth;
- else
- return imageDisplayProperties.smooth;
- }
- */
//----------------------------------
// source