Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TIMOB-7499 update to Image behavior to use a bitmap config that allows f... #2780

Merged
merged 2 commits into from Aug 21, 2012
Merged

TIMOB-7499 update to Image behavior to use a bitmap config that allows f... #2780

merged 2 commits into from Aug 21, 2012

Conversation

rusticphilosopher
Copy link
Contributor

...or alpha information

Test included in ticket.

https://jira.appcelerator.org/browse/TIMOB-7499

@@ -637,7 +637,7 @@ public static KrollDict viewToImage(KrollDict proxyDict, View view)
Log.e(TAG, "Height property is 0 for view, display view before calling toImage()", Log.DEBUG_MODE);
}

Bitmap bitmap = Bitmap.createBitmap(width, height, Config.RGB_565);
Bitmap bitmap = Bitmap.createBitmap(width, height, Config.ARGB_8888);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix will require 2x more memory for the same image. Seems to be a very expensive solution, which will cause memory issues when users attempt to load up high res images. Is this the only solution?

@hieupham007
Copy link
Contributor

Code reviewed. Please address comments.

@hieupham007
Copy link
Contributor

Code reviewed and functionally tested. Also discussed solution with Opie. Request accepted.

hieupham007 added a commit that referenced this pull request Aug 21, 2012
TIMOB-7499 update to Image behavior to use a bitmap config that allows f...
@hieupham007 hieupham007 merged commit ee8368c into tidev:master Aug 21, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants