'바탕화면'에 해당되는 글 1건

  1. 2009.10.30 Windows 7의 바탕화면 슬라이드쇼

Windows 7에서 사용자 UI 관련해서 많은 부분들이 개선되거나 추가 되었는데, 그 중에 하나가 바탕화면 이미지가 일정 시간 단위로 계속 변경되는 슬라이드 쇼 기능입니다. 바탕화면은 사용자가 컴퓨터를 사용할 때 가장 자주 접하게 되는 화면으로 각자 좋아하는 이미지를 이용해서 바탕화면을 꾸며서 사용하는 경우가 많습니다. 하지만 매번 보는 바탕화면이 지겨울 수도 있기 때문에 슬라이드쇼 기능을 이용해서 다양하게 변화하는 바탕화면을 즐길 수 있게 되었습니다.

이 기술은 기존에 바탕화면 테마에 추가된 기능으로서 테마 파일(.theme)에 [Slideshow]라는 섹션에 관련 정보를 추가함으로써 간단히 구현할 수 있습니다.

자세한 내용은 아래 문서를 참고하시기 바랍니다.

Creating and Installing Theme Files

http://msdn.microsoft.com/en-us/library/bb773190(VS.85).aspx

1. Slideshow section의 주요 내용

다음은 [Slideshow] section의 세부 속성에 대한 내용입니다.

[Slideshow] Section

Windows 7 and later.

Note  This section is optional. If you do not include this section in your .theme file, the system uses the desktop background image specified in the [Control Panel\Desktop] section. If you include this section, you must specify slide show settings here.

Your theme's background can be a slide show either of images stored locally or of images served by an RSS feed. The [Slideshow] section of the file contains the following attributes:

Attribute

Description

Interval=number of milliseconds

Required. Interval is a number that determines how often the background changes. It is measured in milliseconds.

Shuffle=0 or 1

Required. Shuffle identifies whether the background shuffles.
0 = Disabled
1 = Enabled

RSSFeed=URL to RSS feed

Required if ImagesRootPath is not specified. RSSFeed specifies an RSS feed to use as the background slide show. For the feed to work, you need to reference high-resolution images adhering to the "enclosures" standard used by the Windows RSS Platform. Because of this limitation, .theme files that include an RSS feed must be created manually.

Note  You cannot specify both an RSSFeed and ImagesRootPath.

ImagesRootPath=path to image folder

Required if RSSFeed is not specified. ImagesRootPath specifies a path to a set of images you want to use as the background slide show. Images in subfolders are not included in the slide show.
ImagesRootPath supports Environment Variable substitutions in the path.

Note  You cannot specify both an RSSFeed and ImagesRootPath.

ItemNPath=path(s) to specific image(s)

For use with ImagesRootPath. ItemNPath specifies paths to specific images, so that you can limit the slide show to particular images instead of all images in a folder. If no paths are specified, all images in the ImagesRootPath path are used in the slide show, including images added after creating and installing the theme.
ItemNPath supports Environment Variable substitutions in the path. N is 0, 1, 2, and so on.

The following examples show how a .theme file specifies the slide show to include a set of images stored locally.

Ex1) 특정 폴더 내의 모든 이미지를 슬라이드 쇼 하는 방법에 대한 예

[Slideshow]
Interval=1800000
Shuffle=1
ImagesRootPath=%SystemRoot%\Web\Wallpaper

Ex2) 특정 폴더 내에서 특정 이미지 리스트에 대해서 슬라이드 쇼 하는 방법에 대한 예

[Slideshow]
Interval=1800000
Shuffle=1
ImagesRootPath=%ProgramFiles%\fabrikam\wallpaper
Item0Path=%ProgramFiles%\fabrikam\wallpaper\ocean.jpg
Item1Path=%ProgramFiles%\fabrikam\wallpaper\mountain.jpg
Item2Path=%ProgramFiles%\fabrikam\wallpaper\river.jpg

2. RSS feed 이용하기

특히 로컬디스크에 있는 이미지 뿐만 아니라 RSS feed를 이용해서 웹 상에서 존재하는 이미지를 슬라이드 쇼에 이용할 수 있습니다.

다음은 슬라이드 쇼에 사용할 수 있는 RSS feed의 한 예입니다.

RSS feed : http://specials.msn.com/RSSFeed.aspx?cp-documentid=5484790

<rss version="2.0">
<channel xmlns:media="http://search.yahoo.com/mrss/">
<title>RSS Test Page - </title>
<link>http://specials.msn.com/slideshow.aspx</link>
<description>This page has amateur drawings</description>
<copyright>msn.com</copyright>
<language>en-us</language>
<ttl>30</ttl>
<category>slideshow</category>
<item>
<media:content medium="image" url="http://blstb.msn.com/i/C1/10A4634A93728CB27487271CBC3.jpg" width="80" height="80" fileSize="2458"></media:content>
<pubDate>Tue, 02 Oct 2007 17:43:00 GMT</pubDate>
<link>http://specials.msn.com/slideshow.aspx?cp-documentid=5484790&amp;imageindex=1</link>
</item>
<item>
<media:content medium="image" url="http://blstb.msn.com/i/B5/1126AC9B2AE0AAD62D66DA96E3A87.jpg" width="80" height="80" fileSize="3207"></media:content>
<pubDate>Tue, 02 Oct 2007 17:43:00 GMT</pubDate>
<link>http://specials.msn.com/slideshow.aspx?cp-documentid=5484790&amp;imageindex=2</link>
</item>
</channel>
</rss>

Ex3) RSS feed를 이용해서 background image를 변경하는 테마를 만드는 방법에 대한 예

The following example is a template for a .theme file that creates a desktop background slide show using images from an RSS feed. Follow these steps to customize the template:

1. Copy the following example and paste it into a text editor.

2. Replace {themename} with the name you want to appear in the Personalization Control Panel themes gallery.

3. Replace {rssfeedurl} with the full path to a compatible RSS feed.

4. Save the changes as a file with the ".theme" extension.

[Theme]
DisplayName={themename}

[Slideshow]
Interval=1800000
Shuffle=1
RssFeed={rssfeedurl}
// 이하 생략
원래 바탕화면 배경이미지에 대한 것은 HKCU\Control Panel\Desktop의 wallpaper(REG_SZ) 항목에 이미지파일의 경로를 저장하도록

되어 있습니다. 슬라이드쇼 기능은 새로 보여줄 이미지 파일을 로컬 디스크에 임의의 경로로 저장하고 이 레지스트리 키 값을 해당 이미지 파일로 변경합니다. 그리고 일정 시간이 되면 다른 이미지 파일로 이를 교체함으로써 슬라이드쇼의 기능을 구현하도록 되어 있습니다.

특히 RSS feed 기능을 이용하면 로컬에 있는 이미지 파일이 아니라 바탕화면 이미지를 배포하는 웹 서버를 통해서 늘 새로운 바탕화면을 구독할 수 있는 기능도 사용할 수 있습니다.

'Programming' 카테고리의 다른 글

Thread Scheduling 유형  (0) 2009.12.07
Win7의 부팅속도 향상  (0) 2009.11.04
OS Kernel 함수들의 Prefix  (0) 2009.10.14
DriverEntry 함수  (0) 2009.09.11
Virtual PC를 이용한 Kernel debugging  (0) 2009.09.09
Posted by noenemy
,