Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Here you should submit your bug reports with logcat.
  • Page:
  • 1
  • 2

TOPIC:

OutOfMemoryError high screen resolution 10 years 9 months ago #3144

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
are you apply source codes?
and are you suren PDFVPage class has method as:
	protected void CreateBmp()
	{
		if( m_cache == null || m_cache.m_status != 1 || m_bmp != null ) return;
		float scale = 1;
		if( m_cache.m_dibw * m_cache.m_dibh > (1000000) )
			scale = FloatMath.sqrt( (float)(1000000) / (m_cache.m_dibw * m_cache.m_dibh) );
		int w = (int)(m_cache.m_dibw * scale);
		int h = (int)(m_cache.m_dibh * scale);
		try
		{
			m_bmp = Bitmap.createBitmap(w, h, Config.ARGB_8888);
			int bmp = Global.lockBitmap(m_bmp);
			Global.drawToBmp2(bmp, m_cache.m_dib, 0, 0, w, h);
			Global.unlockBitmap(m_bmp, bmp);
		}
		catch(Exception e)
		{
		}
		m_cache.Clear();
		m_cache = null;
		if( m_sel != null )
		{
			m_sel.Clear();
			m_sel = null;
		}
	}

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Powered by Kunena Forum