# What happened to lockPixelDataReadOnly?

**URL:** <https://forum.juce.com/t/what-happened-to-lockpixeldatareadonly/6476>\
**Category:** General JUCE discussion\
**Created:** [February 24, 2011, 1:12pm UTC](https://forum.juce.com/t/what-happened-to-lockpixeldatareadonly/6476 "2011-02-24T13:12:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ozzjay](https://avatars.discourse-cdn.com/v4/letter/o/a183cd/32.png) [@ozzjay](https://forum.juce.com/u/ozzjay)\
**Post date:** [February 24, 2011, 1:12pm UTC](https://forum.juce.com/t/what-happened-to-lockpixeldatareadonly/6476/1 "2011-02-24T13:12:08Z")

</div>

With the latest build I’m getting all sorts of errors relating to Image class? whats happening…

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [February 24, 2011, 1:17pm UTC](https://forum.juce.com/t/what-happened-to-lockpixeldatareadonly/6476/2 "2011-02-24T13:17:22Z")

</div>

Wow, that method is ancient history! There’s a class Image::BitmapData now which provides a clean RAII wrapper for getting the image data.

---

<div class="post-metadata">

**Author:** ![ozzjay](https://avatars.discourse-cdn.com/v4/letter/o/a183cd/32.png) [@ozzjay](https://forum.juce.com/u/ozzjay)\
**Post date:** [February 24, 2011, 1:27pm UTC](https://forum.juce.com/t/what-happened-to-lockpixeldatareadonly/6476/3 "2011-02-24T13:27:14Z")

</div>

very nice! I’ll take a look now, Wow, that was a fast reply
