From: Maxim S. <mc...@an...> - 2005-10-25 03:08:33
|
Please pardon my pause. > unsigned width() const { return m_rbuf->width(); } > unsigned height() const { return m_rbuf->height(); } > Returns width and height of the buffer in pixels. > IIUC, the values returned are not in pixels, but in color components. It returns values in *pixels*. So rendering_buffer does. You call rbuf.attach(buf, w, h, stride); The values of "w" and "h" are just stored and returned. Nothing more. The real pixel width is determined by "stride". And the real pixel format is known only in pixfmt_nnnn. McSeem "Bruno Martínez" <br...@in...> wrote in message news:op.syyyczzb551aze@yoda... The class pixel_formats_rgb24 is documented as unsigned width() const { return m_rbuf->width(); } unsigned height() const { return m_rbuf->height(); } Returns width and height of the buffer in pixels. IIUC, the values returned are not in pixels, but in color components. Bruno ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl |