C# 클래스 MediaPortal.GUI.Library.GUIImage

A GUIControl for displaying Images.
상속: GUIControl
파일 보기 프로젝트 열기: MediaPortal/MediaPortal-1 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Cleanup void
DrawBorder void
FinalizeBorder void
FreeResourcesAndRegEvent void
GUIPropertyManager_OnPropertyChanged void
OnListTexturesDisposedEvent void
OnPackedTexturesDisposedEvent void
ParseParameters int[]
ReleaseTexture void
UnsubscribeAndReleaseListTextures void
UnsubscribeListTextures void
UnsubscribeOnPropertyChanged void

공개 메소드들

메소드 설명
AllocResources ( ) : void

Allocate the DirectX resources needed for rendering this GUIImage.

Animate ( float timePassed, Animator animator ) : void
BeginAnimation ( ) : void
CanFocus ( ) : bool

Returns if the control can have the focus.

Dispose ( ) : void

Free the DirectX resources needed for rendering this GUIImage.

FinalizeConstruction ( ) : void

This function is called after all of the XmlSkinnable fields have been filled with appropriate data. Use this to do any construction work other than simple data member assignments, for example, initializing new reference types, extra calculations, etc..

GUIImage ( int dwParentID ) : System
GUIImage ( int dwParentID, int dwControlId, int dwPosX, int dwPosY, int dwWidth, int dwHeight, string strTexture, Color color ) : System
GUIImage ( int dwParentID, int dwControlId, int dwPosX, int dwPosY, int dwWidth, int dwHeight, string strTexture, Color color, int border, int strBorderPosition, bool borderTextureRotate, bool borderTextureRepeat, Color borderColor ) : System
GUIImage ( int dwParentID, int dwControlId, int dwPosX, int dwPosY, int dwWidth, int dwHeight, string strTexture, long dwColorKey ) : System

The constructor of the GUIImage class.

GUIImage ( int dwParentID, int dwControlId, int dwPosX, int dwPosY, int dwWidth, int dwHeight, string strTexture, long dwColorKey, int border, int strBorderPosition, bool borderTextureRepeat, bool borderTextureRotate, long dwBorderColorKey ) : System
GetCenter ( float &centerX, float &centerY ) : void
LockMemoryImageTexture ( Bitmap &bitmap ) : bool
Refresh ( ) : void
RemoveMemoryImageTexture ( ) : void
Render ( float timePassed ) : void

Renders the Image

RenderRect ( float timePassed, Rectangle rectSrc, Rectangle rectDst ) : void
ScaleToScreenResolution ( ) : void

Does any scaling on the inital size\position values to fit them to screen resolution.

Select ( int frameNumber ) : void

If the texture holds more then 1 frame (like an animated gif) then you can select the current frame with this method

SetBorder ( string border, BorderPosition position, bool textureRepeat, bool textureRotate, string textureFilename, long colorKey, bool hasCorners, bool cornerTextureRotate ) : void
SetFileName ( string fileName ) : void

Set the filename of the texture and re-allocates the DirectX resources for this GUIImage.

SetItems ( int iItems ) : void

If the texture has more then 1 frame like an animated gif then you can specify the max# of frames to play with this method

SetMemoryImageSize ( int width, int height ) : void
SetPosition ( int dwPosX, int dwPosY ) : void
UnLockMemoryImageTexture ( ) : void
UpdateVisibility ( ) : void

보호된 메소드들

메소드 설명
Animate ( ) : void

This function will do the animation (when texture is an animated gif) by switching from frame 1->frame2->frame 3->...

Calculate ( ) : void

Sets the state to render the image

Update ( ) : void

비공개 메소드들

메소드 설명
Cleanup ( ) : void
DrawBorder ( bool flip ) : void
FinalizeBorder ( ) : void
FreeResourcesAndRegEvent ( ) : void
GUIPropertyManager_OnPropertyChanged ( string tag, string tagValue ) : void
OnListTexturesDisposedEvent ( object sender, EventArgs e ) : void
OnPackedTexturesDisposedEvent ( object sender, EventArgs e ) : void
ParseParameters ( string valueText ) : int[]
ReleaseTexture ( string file ) : void
UnsubscribeAndReleaseListTextures ( ) : void
UnsubscribeListTextures ( ) : void
UnsubscribeOnPropertyChanged ( ) : void

메소드 상세

AllocResources() 공개 메소드

Allocate the DirectX resources needed for rendering this GUIImage.
public AllocResources ( ) : void
리턴 void

Animate() 보호된 메소드

This function will do the animation (when texture is an animated gif) by switching from frame 1->frame2->frame 3->...
protected Animate ( ) : void
리턴 void

Animate() 공개 메소드

public Animate ( float timePassed, Animator animator ) : void
timePassed float
animator Animator
리턴 void

BeginAnimation() 공개 메소드

public BeginAnimation ( ) : void
리턴 void

Calculate() 보호된 메소드

Sets the state to render the image
protected Calculate ( ) : void
리턴 void

CanFocus() 공개 메소드

Returns if the control can have the focus.
public CanFocus ( ) : bool
리턴 bool

Dispose() 공개 메소드

Free the DirectX resources needed for rendering this GUIImage.
public Dispose ( ) : void
리턴 void

FinalizeConstruction() 공개 메소드

This function is called after all of the XmlSkinnable fields have been filled with appropriate data. Use this to do any construction work other than simple data member assignments, for example, initializing new reference types, extra calculations, etc..
public FinalizeConstruction ( ) : void
리턴 void

GUIImage() 공개 메소드

public GUIImage ( int dwParentID ) : System
dwParentID int
리턴 System

GUIImage() 공개 메소드

public GUIImage ( int dwParentID, int dwControlId, int dwPosX, int dwPosY, int dwWidth, int dwHeight, string strTexture, Color color ) : System
dwParentID int
dwControlId int
dwPosX int
dwPosY int
dwWidth int
dwHeight int
strTexture string
color Color
리턴 System

GUIImage() 공개 메소드

public GUIImage ( int dwParentID, int dwControlId, int dwPosX, int dwPosY, int dwWidth, int dwHeight, string strTexture, Color color, int border, int strBorderPosition, bool borderTextureRotate, bool borderTextureRepeat, Color borderColor ) : System
dwParentID int
dwControlId int
dwPosX int
dwPosY int
dwWidth int
dwHeight int
strTexture string
color Color
border int
strBorderPosition int
borderTextureRotate bool
borderTextureRepeat bool
borderColor Color
리턴 System

GUIImage() 공개 메소드

The constructor of the GUIImage class.
public GUIImage ( int dwParentID, int dwControlId, int dwPosX, int dwPosY, int dwWidth, int dwHeight, string strTexture, long dwColorKey ) : System
dwParentID int The parent of this GUIImage control.
dwControlId int The ID of this GUIImage control.
dwPosX int The X position of this GUIImage control.
dwPosY int The Y position of this GUIImage control.
dwWidth int The width of this GUIImage control.
dwHeight int The height of this GUIImage control.
strTexture string The filename of the texture of this GUIImage control.
dwColorKey long The color that indicates transparancy.
리턴 System

GUIImage() 공개 메소드

public GUIImage ( int dwParentID, int dwControlId, int dwPosX, int dwPosY, int dwWidth, int dwHeight, string strTexture, long dwColorKey, int border, int strBorderPosition, bool borderTextureRepeat, bool borderTextureRotate, long dwBorderColorKey ) : System
dwParentID int
dwControlId int
dwPosX int
dwPosY int
dwWidth int
dwHeight int
strTexture string
dwColorKey long
border int
strBorderPosition int
borderTextureRepeat bool
borderTextureRotate bool
dwBorderColorKey long
리턴 System

GetCenter() 공개 메소드

public GetCenter ( float &centerX, float &centerY ) : void
centerX float
centerY float
리턴 void

LockMemoryImageTexture() 공개 메소드

public LockMemoryImageTexture ( Bitmap &bitmap ) : bool
bitmap Bitmap
리턴 bool

Refresh() 공개 메소드

public Refresh ( ) : void
리턴 void

RemoveMemoryImageTexture() 공개 메소드

public RemoveMemoryImageTexture ( ) : void
리턴 void

Render() 공개 메소드

Renders the Image
public Render ( float timePassed ) : void
timePassed float
리턴 void

RenderRect() 공개 메소드

public RenderRect ( float timePassed, Rectangle rectSrc, Rectangle rectDst ) : void
timePassed float
rectSrc Rectangle
rectDst Rectangle
리턴 void

ScaleToScreenResolution() 공개 메소드

Does any scaling on the inital size\position values to fit them to screen resolution.
public ScaleToScreenResolution ( ) : void
리턴 void

Select() 공개 메소드

If the texture holds more then 1 frame (like an animated gif) then you can select the current frame with this method
public Select ( int frameNumber ) : void
frameNumber int
리턴 void

SetBorder() 공개 메소드

public SetBorder ( string border, BorderPosition position, bool textureRepeat, bool textureRotate, string textureFilename, long colorKey, bool hasCorners, bool cornerTextureRotate ) : void
border string
position BorderPosition
textureRepeat bool
textureRotate bool
textureFilename string
colorKey long
hasCorners bool
cornerTextureRotate bool
리턴 void

SetFileName() 공개 메소드

Set the filename of the texture and re-allocates the DirectX resources for this GUIImage.
public SetFileName ( string fileName ) : void
fileName string
리턴 void

SetItems() 공개 메소드

If the texture has more then 1 frame like an animated gif then you can specify the max# of frames to play with this method
public SetItems ( int iItems ) : void
iItems int
리턴 void

SetMemoryImageSize() 공개 메소드

public SetMemoryImageSize ( int width, int height ) : void
width int
height int
리턴 void

SetPosition() 공개 메소드

public SetPosition ( int dwPosX, int dwPosY ) : void
dwPosX int
dwPosY int
리턴 void

UnLockMemoryImageTexture() 공개 메소드

public UnLockMemoryImageTexture ( ) : void
리턴 void

Update() 보호된 메소드

protected Update ( ) : void
리턴 void

UpdateVisibility() 공개 메소드

public UpdateVisibility ( ) : void
리턴 void