DELPHI盒子
!实时搜索: 盒子论坛 | 注册用户 | 修改信息 | 退出
检举帖 | 全文检索 | 关闭广告 | 捐赠
技术论坛
 用户名
 密  码
自动登陆(30天有效)
忘了密码
≡技术区≡
DELPHI技术
lazarus/fpc/Free Pascal
移动应用开发
Web应用开发
数据库专区
报表专区
网络通讯
开源项目
论坛精华贴
≡发布区≡
发布代码
发布控件
文档资料
经典工具
≡事务区≡
网站意见
盒子之家
招聘应聘
信息交换
论坛信息
最新加入: forget66
今日帖子: 65
在线用户: 15
导航: 论坛 -> DELPHI技术 斑竹:liumazi,sephil  
作者:
男 weili0677 (时间漩涡) ★☆☆☆☆ -
普通会员
2022/7/3 16:19:00
标题:
delphi 10.4 在高DPI的情况下播放Gif质量比较差怎么解决? 浏览:1226
加入我的收藏
楼主: 听说新的TVirtualImage不支持Gif的动画播放
TImage的Gif播放,放大后就有锯齿了。
----------------------------------------------
-
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2022/7/4 0:39:41
1楼: as said for some programmers:

-- GIF it's not for H-DPI, in fact!

remember: GIF was born in internet-epoch! No High-DPI...

try changes your project to use SKIA4Delphi, it's a vectorial graphics for any scale/dpi. it's simple use!

Cross-platform 2D
https://github.com/skia4delphi/skia4delphi

GetIt link
http://bbs.2ccc.com/topic.asp?topicid=628713
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 keymark (嬲) ▲▲▲△△ -
普通会员
2022/7/4 9:42:39
2楼: SVG 意为可缩放矢量图形(Scalable Vector Graphics)。(二楼说)


图形放大 锯齿

图形学中的抗锯齿方法简谈

github.io

入门图形学:抗锯齿

图形渲染有锯齿怎么办?MSAA 好
----------------------------------------------
[alias]  co = clone --recurse-submodules  up = submodule update --init --recursiveupd = pullinfo = statusrest = reset --hard懒鬼提速https://www.cctry.com/>http://qalculate.github.io/downloads.htmlhttps://www.cctry.com/
作者:
男 weili0677 (时间漩涡) ★☆☆☆☆ -
普通会员
2022/7/4 10:35:04
3楼: 额,谢谢。。二楼的意思是用他的SKIA4Delphi也不能实现GIF放大后的失真情况?

Hi~emailx45,Your SKIA4Delphi can scale Gif for High-DPI? have any examples for GIF?
----------------------------------------------
-
作者:
男 pcplayer (pcplayer) ★☆☆☆☆ -
普通会员
2022/7/4 13:05:12
4楼: 说白了,GIF 的分辨率通常很低,所以放大后会有锯齿。
----------------------------------------------
-
作者:
男 keymark (嬲) ▲▲▲△△ -
普通会员
2022/7/4 13:20:47
5楼: jpg png都有动图格式 只要你流量扛得住。
----------------------------------------------
[alias]  co = clone --recurse-submodules  up = submodule update --init --recursiveupd = pullinfo = statusrest = reset --hard懒鬼提速https://www.cctry.com/>http://qalculate.github.io/downloads.htmlhttps://www.cctry.com/
作者:
男 wr960204 (武稀松) ★☆☆☆☆ -
盒子活跃会员
2022/7/4 15:28:16
6楼: GIF分辨率一般都不高,颜色也少,只有156色。也不是矢量图。GIF的年代太早了,也没考虑过现在的情况。什么矢量,高清。

GIF先分解到每一帧,然后对每一帧进行平滑算法的缩放处理,会稍微好一点

做看图工具外在GIF的确实没办法,如果是你们自己的,可以做高分辨率GIF或者APNG等
----------------------------------------------
武稀松http://www.raysoftware.cn
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2022/7/4 21:13:38
7楼: If "Whatsup", "Facebook", "Amazon", and other big-tech are using  then, it's great not?

this apps using "Lottie" files to show "emoticons" and SKIA it's the engine behind...

-- Lottie files it's a "JSON" file, at end! = a text file! 
---- little, and powerfull!
--- no lost, no deform!
--- low or high resolution!

Any resolution (low or high) same code, any size!
https://lottiefiles.com/
----------

SKIA4Delphi:

FMX graphics engine replacement
Using the Skia4Delphi library it is possible to override Firemonkey's rendering engine so that it can use Skia as its default Canvas. With that, your Firemonkey application will automatically:

Draw with antialiasing on any platform (the drawing quality is based on the Form.Quality property);
Increase the overall graphics performance of your application by up to 50% (even drawing with higher quality);
Resize images with better quality (also based on Form.Quality);
Support Right-To-Left text rendering;
Fix dozens of inconsistencies in drawings (especially in corners and strokes, such as dashes, and in texts with special emojis);
Increase the performance of the library in general (controls, drawings, among others...).

Codecs
The Skia4Delphi library supports many image formats. See below the list:

Supported formats for decoding

Image Format  Extensions
Bitmap  .bmp
GIF  .gif
Icon  .ico
JPEG  .jpg, .jpeg
PNG  .png
Raw Adobe DNG Digital Negative  .dng
Raw Canon  .cr2
Raw Fujifilm RAF  .raf
Raw Nikon  .nef, .nrw
Raw Olympus ORF  .orf
Raw Panasonic  .rw2
Raw Pentax PEF  .pef
Raw Samsung SRW  .srw
Raw Sony  .arw
WBMP  .wbmp
WebP  .webp
Supported formats for encoding

Image Format  Extensions
JPEG  .jpg, .jpeg
PNG  .png
WebP  .webp
----------
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2022/7/4 21:21:05
8楼: on internet you can use many tools to convert "Gif" files to "Lottie JSON" files...

example:
https://www.figma.com/community/plugin/809860933081065308/LottieFiles
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 pcplayer (pcplayer) ★☆☆☆☆ -
普通会员
2022/7/5 1:08:47
9楼: 楼主不说他要播放 GIF 是用于什么场景,那各种解决方案也就不知道是否合适。
----------------------------------------------
-
作者:
男 sail2000 (小帆工作室) ★☆☆☆☆ -
盒子活跃会员
2022/7/5 19:35:23
10楼: 位图就是点阵图,放大必有锯齿。
除非用矢量图。
----------------------------------------------
delphi 是兴趣,和工作无关,即使它倒闭。又不靠它 delphi 吃饭,怕甚?
信息
登陆以后才能回复
Copyright © 2CCC.Com 盒子论坛 v3.0.1 版权所有 页面执行85.9375毫秒 RSS