如何设置全屏闪屏图像 [英] How to set a full-screen splash screen image

查看:31
本文介绍了如何设置全屏闪屏图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我想我应该解释一下什么是启动画面.例如,下图是 windows 商店的启动画面:

First,I think I should explain what is the splash screen. For example, the image below is the windows store splash screen:

但是,我认为它是如此相同.我想使用大图像作为启动画面,例如:

However,I think it is so samey. I wanna use a big image as the splash screen, such as:

但是当我将图像设置为启动画面时,它并没有填满屏幕:

But when I set the image as the splash screen, it does not fill up the screen:

我希望它是这样的,图像完整并在屏幕上居中.(我使用 Photoshop 制作了这个模型):

I want it to be like this, the image full and centered on the screen. (I made this mock-up using Photoshop):

我怎样才能做到这一点?

How can I achieve this?

推荐答案

Windows 启动画面不是固定的,它取决于窗口大小,有时可能是横向有时是纵向.所以大部分窗口预计会填充背景色.

Windows startup screen is not fixed and it depends on the window size, which might be sometimes landscape sometimes portrait. So most of the window is expected to be filled with background color.

所以你所要求的是不可能的.您只能制作超级简单的第一页(仅包含该图像)并确保它可以尽快显示,然后在显示该页面时运行您的设置代码,该页面看起来像启动画面.当然,在这种情况下,您将为 Windows 中定义的初始屏幕设置一个空图像.

So what you ask for is impossible. You can only make the first page that is super simple (contains only that image) and ensure that it can appear as fast as possible and then run your setup code while that page is shown which would look like splash screen. Of course in that case you would set an empty image for the splash screen defined in Windows.

这篇关于如何设置全屏闪屏图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆