在Directx中显示问题,png变得模糊..... [英] Display problen in Directx, the png is blur.....

查看:224
本文介绍了在Directx中显示问题,png变得模糊.....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,有人可以帮我吗?
我是编程新手:((

现在,我尝试在游戏中使用DirectX
我发现显示图片模糊的问题
屏幕无法显示清晰的图像.

首先,我与之前没有问题的程序进行了比较.

我发现我以前的程序使用位深度为32位的png.
所以我将当前程序的图片从24bit更改为32bit(位深度).

它仍然没有用.
我当前程序的屏幕仍然模糊!我不明白为什么?
请帮帮我〜

hello, can someone help me with this?
i am new in programming :((

now, i try to use directx for my game
i found the problem that the display picture is blur
screen doesn''t show clear image.

first, i compared with my previous program which doesn''t have any problems.

i found that my previous program use png with bit depth 32 bit.
so i changed my current program''s picture from 24bit to 32bit (bit depth).

it still did not work.
my current program''s screen is still blur!! I don''t understand why??
please, help me~

推荐答案

可能是您的像素坐标偏离了0.5-请尝试阅读以下内容:

直接将像素映射到像素 [
It could be that your pixel coordinates are off by 0.5 - try reading through this:

Directly Mapping Texels to Pixels[^]


这篇关于在Directx中显示问题,png变得模糊.....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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