NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 59 60 61 62 63 … 93 Next »
Composite Image transparency problem

 
  • 0 Vote(s) - 0 Average
Composite Image transparency problem
gruskada
Offline

Member

Posts: 121
Threads: 20
Joined: Dec 2005
#1
2006-02-10, 09:01 PM (This post was last modified: 2006-02-10, 10:11 PM by gruskada.)
I can't seem to figure this out - I've got a transparent control, and am using the following code to try and make the composite image transparent (I'm overriding OnPaint):

e.Graphics.Clear(Color.Transparent);
e.Graphics.DrawImage(this.DisplayableImage, this.Loc);

If I put the Clear statement below DrawImage, as it's done in the skeleton plugin, the whole image becomes black.

[ATTACHMENT NOT FOUND]

BTW, I'm using SkinHelper's GetNamedImage to generate DisplayableImage.

Anyone ever run into something like this?

UPDATE: the whole source code has been posted at SourceForge, if you need to take a look (offending code is at line 116 of CompositeImage.cs). (BTW, the WYSIWYG is now connected to the selected XML file, and lets you see properties for selected composite images. However, there's currently a problem if you close one skin, then open another. I think I'll eventually try an MDI or tabbed interface so you can have mult. skins open. The directory tree view also has context sensitve menues that all work.)

Anyway, if you help me solve the problem, I'll put your name in the credits ('cause of course, it would be impossible to do yourself, having the source code available and all, but that would be cheating Smile).

gruskada
Old Dog
Offline

Posting Freak

Posts: 1,083
Threads: 99
Joined: Jul 2005
#2
2006-02-10, 11:25 PM
try something like this...

Code:
[size=3]
args["@buttonText"] = Label;

Bitmap BM = skinHelper.getTemporaryBitmapFromCache(NormalButtonSize.Width,
                                                   NormalButtonSize.Height,
                                                   1);

skinHelper.getNamedImageNonCached(BM,
                      true,
                      Color.Transparent,
                      "NormalButtonImage",
                      args);

g.DrawImage(BM, Location);

[/size]

-David
Learning new tricks!
Visit Plain Jane's Collection
gruskada
Offline

Member

Posts: 121
Threads: 20
Joined: Dec 2005
#3
2006-02-11, 02:29 AM
Old Dog - Thanks, it worked! Your solution got me a transparent image, which got me 95% of the way there (and was exactly what I asked for help with). The control itself started having serious re-draw problems, though - I figured out the rest with the help of this article by Bob Powell.

gruskada
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Coverart / fanart image sizes??? bgowland 3 2,308 2014-02-16, 11:50 PM
Last Post: bgowland
  Where does this image come from? bgowland 4 2,463 2013-02-13, 07:26 PM
Last Post: bgowland
  Video Library Fanart Transparency tieke 7 4,043 2013-01-09, 08:23 AM
Last Post: tieke
  Problem with preview image for Pending Recordings Northpole 2 2,060 2012-08-14, 02:56 AM
Last Post: Northpole
  ActivatePopup: SSPlus problem ACTCMS 10 4,915 2012-07-18, 09:43 PM
Last Post: ACTCMS
  FanArt & displaying a background image Jaggy 2 1,786 2012-01-31, 11:39 PM
Last Post: sub
  Weird Code problem - serialisation (I'll spell it the proper way!!"0 psycik 22 6,403 2011-11-25, 03:16 AM
Last Post: whurlston
  Resolving required plugin assemblies problem McBainUK 37 12,412 2011-10-26, 06:12 PM
Last Post: psycik
  Which channel logo image formats does npvr support? bgowland 2 2,146 2011-03-06, 05:43 AM
Last Post: bgowland
  Image Caching imilne 6 2,608 2011-01-01, 11:45 PM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode