Return-Path: X-Original-To: apmail-flex-dev-archive@www.apache.org Delivered-To: apmail-flex-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A576B10C48 for ; Tue, 17 Sep 2013 18:26:22 +0000 (UTC) Received: (qmail 57923 invoked by uid 500); 17 Sep 2013 18:26:20 -0000 Delivered-To: apmail-flex-dev-archive@flex.apache.org Received: (qmail 57863 invoked by uid 500); 17 Sep 2013 18:26:18 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 57683 invoked by uid 99); 17 Sep 2013 18:26:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Sep 2013 18:26:11 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of maurice.amsellem@systar.com designates 66.129.85.153 as permitted sender) Received: from [66.129.85.153] (HELO smtp02.myhostedservice.com) (66.129.85.153) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Sep 2013 18:26:06 +0000 Received: from EXHUB04.netplexity.local (172.29.211.24) by smtp02.myhostedservice.com (172.29.211.12) with Microsoft SMTP Server (TLS) id 14.2.347.0; Tue, 17 Sep 2013 14:25:38 -0400 Received: from EXMBX05.netplexity.local ([fe80::cc58:cfe7:ba3b:fae]) by exhub04 ([172.29.211.24]) with mapi id 14.03.0146.000; Tue, 17 Sep 2013 14:25:43 -0400 From: Maurice Amsellem To: "dev@flex.apache.org" Subject: MultiBitmapSource Thread-Topic: MultiBitmapSource Thread-Index: Ac6z0euEGeUBVnCYRhabkrWRCNzA5Q== Date: Tue, 17 Sep 2013 18:25:42 +0000 Message-ID: <2095F5EBE04D59409DFCE91FFCEBF7AF3F52476A@EXMBX05.netplexity.local> Accept-Language: fr-FR, en-US Content-Language: fr-FR X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.29.211.254] Content-Type: multipart/alternative; boundary="_000_2095F5EBE04D59409DFCE91FFCEBF7AF3F52476AEXMBX05netplexi_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_2095F5EBE04D59409DFCE91FFCEBF7AF3F52476AEXMBX05netplexi_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Community, MultiBitmapSource getSource(dpi) method is called 3 times in the SDK with e= xactly the same code: var app:Object =3D FlexGlobals.topLevelApplication; var dpi:Number; if ("runtimeDPI" in app) dpi =3D app["runtimeDPI"]; else dpi =3D DensityUtil.getRuntimeDPI(); var multiSource:Object =3D MultiDPIBitmapSource(source).get= Source(dpi); Wouldn't it be better to have this code embedded in the MultiBitmapSource g= etSource() method ? The desiredDPI:Number arg could be made optional, so as not to break existi= ng code, and use the above code when desiredDPI is NaN . Another advantage of this is that it will allow to use MBS with other class= es, such as BitmapAssets. What do you think? Regards, Maurice --_000_2095F5EBE04D59409DFCE91FFCEBF7AF3F52476AEXMBX05netplexi_--