STATE_bitmap_write_memory_block

 

 


   Write a stream of bytes to the beginning of the bitmap. This function is useful when we want to 
   replace the entire content of a bitmap. This is a lot faster than setting each pixel separately
   Delphi programmers should use STATE_bitmap_write_memory_block()
   instead of STATE_bitmap_start_direct_memory_access(), C/C++ programs can use both according to their preferences
  
   Parameters:
  		bitmap_handle [IN]:
  			The bitmap we want to access its memory
  
  		mipmap_level [IN]:
  			See details in STATE_bitmap_set_pixel()
  
  		pixels_data:
  			The array of bytes that would be copied to the bitmap
  			It is the user responsibility to make sure that the bytes/pixels are in the same format as the
  			bitmap pixels. On that issue see also STATE_bitmap_set_default_format()
  
  		number_of_bytes:
  			The number of bytes in the pixels_data array. For example if it is a 256x256 bitmap in RGBA format (32 bit per pixel)
  			then to replace all the pixels we should have number_of_bytes=65536*4
  			
  

 

 

Go to page 1      Select API

 

Copyright © 2007 3DSTATE Corporation. www.3dstate.com