Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

getData() vs getDataBuffer()  RSS feed

 
Hamsagayathri Palanisamy
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
can anyone please say me the difference between
BufferedImage.getData() and WritableRaster.getDataBuffer()?
Thanks in Advance.

Thanks & Regards,
Hamsa

[ March 11, 2008: Message edited by: Hamsagayathri Palanisamy ]

[ March 11, 2008: Message edited by: Hamsagayathri Palanisamy ]
[ March 11, 2008: Message edited by: Hamsagayathri Palanisamy ]
 
Ian Edwards
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you've posted this to the wrong forum.
 
Jelle Klap
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In either case you should be aware that when you access the Raster object's DataBuffer directly, you will lose the managed image advantage, because Java 2D will be unable to update the accelerated image version stored in VRAM if it can't exclusively regulate updates to the array data.

[ March 12, 2008: Message edited by: Jelle Klap ]
[ March 12, 2008: Message edited by: Jelle Klap ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!