guys,

thanks for your replies. After your tips, I am now able to get bgimage, but
not to resize it (Actually that's the most important part needed by my app).


I got it as a imgContainer object, but unfortunatelly it availables only
getter methods (like getLenght , getWeight) so setting size is impossible
from these objects. Any ideia of how could I cast it to any other object
which I could set/change its size, like for  nsIDOMHTMLImageElement objects
?

thanks again

On 4 Jul 2006 00:02:14 -0700, Olaf <[EMAIL PROTECTED]> wrote:

The background image is not available as a normal image i guess.
But if you lookup the body tag, it could have a background attribute.
Look at: nsIDOMHTMLBodyElement.h it has a method GetBackground. Give
that a try.

[EMAIL PROTECTED] wrote:
> I don't have any experience working with the C++ core, but I do
> know that the background images are generally done through the CSS
> files/embeded style information. In javascript, you have to go through
> every stylesheet parsed into the DOM and iterate through the rules
> searching for url(IMAGE.EXT).
>
> Stephen
>
> Antônio Gomes wrote:
> > I sent this mail to mozilla-layout but without anwaser. If you could
> > help ...
> >
> > regards

> > All,
> >
> > is there a way to get all background-image from an webpage , like it's
> > possible for "common" images ? e.g. the following quoted code does not
> > get them:
> >
> > doc->GetElementsByTagName(nsEmbedString("img"), getter_AddRefs
(imgList));


--
--Antonio Gomes
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to