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 EA131102DB for ; Wed, 18 Sep 2013 20:08:04 +0000 (UTC) Received: (qmail 61666 invoked by uid 500); 18 Sep 2013 20:08:03 -0000 Delivered-To: apmail-flex-dev-archive@flex.apache.org Received: (qmail 61603 invoked by uid 500); 18 Sep 2013 20:08:03 -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 61594 invoked by uid 99); 18 Sep 2013 20:08:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Sep 2013 20:08:03 +0000 X-ASF-Spam-Status: No, hits=1.0 required=5.0 tests=FRT_ADOBE2,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; Wed, 18 Sep 2013 20:07:58 +0000 Received: from EXHUB05.netplexity.local (172.29.211.25) by smtp02.myhostedservice.com (172.29.211.12) with Microsoft SMTP Server (TLS) id 14.2.347.0; Wed, 18 Sep 2013 16:07:31 -0400 Received: from EXMBX05.netplexity.local ([fe80::cc58:cfe7:ba3b:fae]) by exhub05 ([172.29.211.25]) with mapi id 14.03.0146.000; Wed, 18 Sep 2013 16:07:37 -0400 From: Maurice Amsellem To: "dev@flex.apache.org" Subject: RE: MultiBitmapSource Thread-Topic: MultiBitmapSource Thread-Index: Ac6z0euEGeUBVnCYRhabkrWRCNzA5QA1crvgAAj0o4AACE2UYA== Date: Wed, 18 Sep 2013 20:07:37 +0000 Message-ID: <2095F5EBE04D59409DFCE91FFCEBF7AF3F524F40@EXMBX05.netplexity.local> References: <2095F5EBE04D59409DFCE91FFCEBF7AF3F524EE7@EXMBX05.netplexity.local> In-Reply-To: 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: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org I didn't know there was a ticket already. Thanks guys. Maurice=20 -----Message d'origine----- De=A0: Alex Harui [mailto:aharui@adobe.com]=20 Envoy=E9=A0: mercredi 18 septembre 2013 22:03 =C0=A0: dev@flex.apache.org Objet=A0: Re: MultiBitmapSource Yes, but I think Justin opened one for you. I think it is: https://issues.apache.org/jira/browse/FLEX-33739 Please check and add yourself to the watch and vote. -Alex On 9/18/13 12:48 PM, "Maurice Amsellem" wrote: >Is raising a JIRA directly the right approach to proposing new features=20 >or behavior change (such as the one below)? > >Thanks > >Maurice > >-----Message d'origine----- >De : Maurice Amsellem [mailto:maurice.amsellem@systar.com] >Envoy=E9 : mardi 17 septembre 2013 20:26 >=C0 : dev@flex.apache.org >Objet : MultiBitmapSource > >Hi Community, > >MultiBitmapSource getSource(dpi) method is called 3 times in the SDK=20 >with exactly 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=20 >MultiDPIBitmapSource(source).getSource(dpi); > > >Wouldn't it be better to have this code embedded in the=20 >MultiBitmapSource >getSource() method ? > >The desiredDPI:Number arg could be made optional, so as not to break=20 >existing code, and use the above code when desiredDPI is NaN . > >Another advantage of this is that it will allow to use MBS with other=20 >classes, such as BitmapAssets. > >What do you think? > >Regards, > >Maurice > > >