by android-newbie » Thu, 03 Dec 2009 07:21:43 GMT

Sponsored Links

I have been looking at LayerBase::drawWithOpenGL() and trying to
figure out if the scaling being done in this function is performing a
"stretch" or "crop", but not able to figure that out yet.

Can someone please let me know if LayerBase::drawWithOpenGL() is doing
"stretching" or "cropping" for scaling operation?

Thank you so much for your help,



by Dianne Hackborn » Thu, 03 Dec 2009 08:30:53 GMT

 Hi, questions about the non-public implementation of Android should be on
android-porting; thanks.


Sponsored Links

Other Threads

1. OpenGL and transparent PNG's

I'm having a problem with transparent 32-bit PNG's on both the
emulator and the G1. They load fine, but I can't change their alpha
value unless the texture is fully opaque to begin with. For a simple

glEnable (GL_BLEND);

glBindTexture(GL_TEXTURE_2D, fully_opaque_texture); // all pixels are

glColor4f(1, 1, 1, 0.5);
glDrawArrays( ... ) // displays half transparency (correct)


glBindTexture(GL_TEXTURE_2D, transparent_texture); // some pixels are

glColor4f(1, 1, 1, 0.5);
glDrawArrays( ... ) // displays as fully opaque (wrong)

I've also tried the following (as suggested on another thread) with no

setEGLConfigChooser(8, 8, 8, 8, 0, 0);

2. Input Method Manager

     Inside, I have the following code.

InputMethodManager imm = (InputMethodManager)getContext
     Log.d("tag", " fullscreenmode test: " + imm.isFullscreenMode());

and also,

InputMethodManager imm = InputMethodManager.peekInstance();
Log.d("tag", imm.isFullscreenMode());

My phone is in landscape mode. My application has an EditText. My
keyboard(virtual/soft) is not visible. I expect the above codes
(written inside to print false. But it prints true. How
is that possible? Any comments?



3. 3GP wrapping of AMR data

4. 1.6: Quick search box to pass parameters to an application

5. LinearLayout, specify children width in percentages?

6. USB Host/Serial Port access

7. LinearLayout, specify children width in percentages?