是这样,本人这有一张4M的PNG图片想用来做APP背景,结果真机一调背景直接全白了,随便换了个1M的PNG又可以了。这个要怎么处理呢
解决方案
20
PNG适合于矢量图片或颜色较为单纯的图片存储,不适合存储颜色复杂的照片(那样会造成PNG图片尺寸很大)
ps就能压缩,要不你把图片贴上来 本人给你压缩下
……继续阅读 »
9年前 (2016-05-19) 1543浏览
0个赞
求高手告知微信聊天页面 这个图片是怎么实现的呢 图片自带个小三角,和图片的颜色是一致的,本人大致知道可能是在上面添加了一个边框,覆盖了一部分,或是裁切了一部分。到底怎么实现起来比较容易呢~
解决方案
10
直接去github搜开源控件把。
不要重复造轮子。
10
没做过,但感觉可以通过覆写ImageView的onDraw()方法来做,super.onDra……继续阅读 »
9年前 (2016-05-19) 3120浏览
0个赞
有一个C#项目要转换成php的,其中这一段代码
new { status = “0”, msg = “用户未登录!” }
能写出来,但是叫不出口,不知道是官方的叫法是什么,所以查不到在php中,应该怎么写
请大家帮忙,先谢谢大家了!
解决方案
10
匿名类型,就是不用你专门去写一个类了
10
匿名对象
$a =……继续阅读 »
9年前 (2016-05-19) 1121浏览
0个赞
这是一个WinForm项目:具体的三层如下
Dao层 SqlHelper.cs:
public class SqlHelper
{
public static int ExecuteNonQuery(string sql, params SqlParameter[] parameters)
{
String connStr = ConfigurationMa……继续阅读 »
9年前 (2016-05-19) 1918浏览
0个赞
代码如下:
实现层:
List<Device> typeidList = new OperateModel().QueryType();
cbx_type.DataSource = typeidList;
模型层:
public class Device
{
public int Id { get; set; }
public string Na……继续阅读 »
9年前 (2016-05-19) 1271浏览
0个赞
“C:\Users\Administrator\Desktop\Jinglun255-12.zip”为字符串
高手能不能帮本人截出C:\Users\Administrator\Desktop
解决方案
20
string path = “C:\Users\Administrator\Desktop\Jinglun255-1……继续阅读 »
9年前 (2016-05-19) 1973浏览
0个赞
public void UnZip(string vToPath, string vPwd)
{
if (string.IsNullOrEmpty(vToPath))
{
return;
}
if (!Directory.Exists(vToPath) || !File.Exists(this.ZipFile))
{
Directory.CreateDir……继续阅读 »
9年前 (2016-05-19) 2022浏览
0个赞
c# 标签打印
写个小程序,用于打印标签,如图
但每次都少打了最后一条,就退纸了。 是什么问题啊
另外,每次预览都有之前预览的信息存在,怎么清除呢?
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
usin……继续阅读 »
9年前 (2016-05-19) 1372浏览
0个赞
例如字符串为“123abcd22.22qwer33.33asdf44.44zxcv”,将22.22和33.33互换位置
解决方案
10
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Regular……继续阅读 »
9年前 (2016-05-19) 1384浏览
0个赞