小编Pou*_*lsQ的帖子

雪碧变得模糊

我开始学习C#和XNA,我想显示一个动画精灵(由我的键盘移动).

我有这个精灵文件:

基本的精灵

要仅显示我需要的部分,我使用以下代码:

Rectangle cuttedSprite = new Rectangle(
    this.W * (int)this.mCurSprite.X, 
    this.H * (int)this.mCurSprite.Y, 
    this.W, 
    this.H
);
spriteBatch.Draw(this.mSpriteTexture, this.mPosition, cuttedSprite, Color.White);
Run Code Online (Sandbox Code Playgroud)

但我的问题是移动后渲染的图像模糊:

模糊问题

我试图通过改变来解决这个问题SamplerStates,但没有改变.有没有人有想法帮助我?

c# xna-4.0

7
推荐指数
1
解决办法
896
查看次数

Android通知图标是一个白色圆圈

我今天的通知图标出现了一个奇怪的问题。

看起来像这样: 在此处输入图片说明 (白圈...)

我做了不好的事吗?

Uri defaultSoundUri= RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)
                .setSmallIcon(R.drawable.icon_notification)
                .setContentTitle(this.getString(R.string.notification_title))
                .setContentText(this.getString(R.string.notification_text))
                .setAutoCancel(true)
                .setSound(defaultSoundUri)
                .setContentIntent(pendingIntent);
Run Code Online (Sandbox Code Playgroud)

这里是我的图标图像(从这里下载的最新https://material.io/icons/#ic_photo): http://image.noelshack.com/fichiers/2016/44/1478185219-icon-notification.png

我错过了什么 ?

作为记录,我使用的是SDK 24,目前仅创建了hdpi资源文件夹。

编辑#1:我已经添加了ldpimdpi并且xhdpi图标,没有什么变化?

编辑#2:为了更精确,我正在尝试从服务... FCM消息传递服务...创建此通知。

notifications icons android

7
推荐指数
3
解决办法
6239
查看次数

标签 统计

android ×1

c# ×1

icons ×1

notifications ×1

xna-4.0 ×1