See what I do in GtkThemeProvider::LoadThemeBitmap:

    SkBitmap* bitmap = new SkBitmap;
    bitmap->setConfig(SkBitmap::kARGB_8888_Config,
                      kToolbarImageWidth, kToolbarImageHeight);
    bitmap->allocPixels();
    bitmap->eraseRGB(color->red >> 8, color->green >> 8, color->blue >> 8);
    return bitmap;

-- Elliot

On Wed, Aug 26, 2009 at 4:12 PM, Paweł Hajdan
Jr.<[email protected]> wrote:
> How do I create a SkBitmap of arbitrary size, filled with color of my choice
> (on Linux)?
> I'd need that for Linux extension shelf, and the Windows code for that seems
> not easily portable to Linux.
> >
>

--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to