玩转位图(bitmap)2
2012年11月8日9:25:47 已上传源代码和可执行文件 2012年11月8日1:03:01 深夜断网,不能上传源码和可执行文件,明日早起补上。喜欢的童鞋们先收藏。 小丸子 查看大图:http://daoluan.net/blog/wp-content/uploads/2012/11/Maruko.jpg 接上篇:http://daoluan
2012年11月8日9:25:47 已上传源代码和可执行文件
2012年11月8日1:03:01 深夜断网,不能上传源码和可执行文件,明日早起补上。喜欢的童鞋们先收藏。
小丸子
查看大图:http://daoluan.net/blog/wp-content/uploads/2012/11/Maruko.jpg
接上篇:http://daoluan.net/blog/enjoy-bitmap/
上篇中发布的程序中不支持png,jpg,gif等主流的图片格式的玩转,只支持24位位图。这一次对软件做以下更新:
- 提供png,jpg(jpeg),tif(tiff)三种图片格式(抱歉gif尚未解决)的支持
- 根据图片的大小适当调整字符字体大小,转换后图片视觉效果更佳
- 优化代码
在图片格式的处理上,笔者借助codeproject上公布的CxImage工具,主要是开源。http://www.codeproject.com/Articles/1300/CxImage
关于如何在工程中使用CxImage,笔者不复述,除了上面给出作者公布的贴以外,还有以下中文版的解说贴:
http://blog.csdn.net/afterwards_/article/details/7997385
http://blog.csdn.net/afterwards_/article/details/7997426
测试建议:转换过程涉及灰度深浅计算,图片平均灰度偏高或者偏低转换图片效果不佳,特别是纯白或者纯黑的图片;推荐使用宠物大头照等;图片的尺寸建议越大越好,长宽700+(Pixels),越大效果越好。
源代码,包含CxImage的库文件,比较大:http://files.cnblogs.com/daoluanxiaozi/pic2_src.rar
可执行文件:http://files.cnblogs.com/daoluanxiaozi/pic2.exe.rar
本文完 2012-11-8
捣乱小子 http://www.daoluan.net/

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

1. Processor When choosing a computer configuration, the processor is one of the most important components. For playing games like CS, the performance of the processor directly affects the smoothness and response speed of the game. It is recommended to choose Intel Core i5 or i7 series processors because they have powerful multi-core processing capabilities and high frequencies, and can easily cope with the high requirements of CS. 2. Graphics card Graphics card is one of the important factors in game performance. For shooting games such as CS, the performance of the graphics card directly affects the clarity and smoothness of the game screen. It is recommended to choose NVIDIA GeForce GTX series or AMD Radeon RX series graphics cards. They have excellent graphics processing capabilities and high frame rate output, and can provide a better gaming experience. 3. Memory power

How to implement file upload and processing in FastAPI FastAPI is a modern, high-performance web framework that is easy to use and powerful. It provides native support for file upload and processing. In this article, we will learn how to implement file upload and processing functions in the FastAPI framework, and provide code examples to illustrate specific implementation steps. First, we need to import the required libraries and modules: fromfastapiimportFastAPI,UploadF

1. Open Kugou Music and click on your profile picture. 2. Click the settings icon in the upper right corner. 3. Click [Upload Music Works]. 4. Click [Upload Works]. 5. Select the song and click [Next]. 6. Finally, click [Upload].

With the advent of the digital age, music platforms have become one of the main ways for people to obtain music. However, sometimes when we listen to songs, we find that there are no lyrics, which is very disturbing. Many people hope that lyrics can be displayed when listening to songs to better understand the content and emotions of the songs. QQ Music, as one of the largest music platforms in China, also provides users with the function of uploading lyrics, so that users can better enjoy music and feel the connotation of the songs. The following will introduce how to upload lyrics on QQ Music. first

How to solve the slow upload speed of Win10 computer? When we use the computer, we may feel that the file upload speed of our computer is very slow. So what is the situation? In fact, this is because the default upload speed of the computer is 20%, so the upload speed is very slow. Many friends do not know how to operate in detail. The editor has compiled the steps to format the C drive in Win11 below. If you are interested, follow Let’s take a look below! Solution to the slow upload speed of Win10 1. Press win+R to call up run, enter gpedit.msc, and press Enter. 2. Select the management template, click Network--Qos Packet Scheduler, and double-click Limit to reserve bandwidth. 3. Select Enabled, which will bring

As long as the computer is equipped with a camera, it can take pictures, but some users still don't know how to take pictures and upload them. Now I will give you a detailed introduction to the method of taking pictures on the computer, so that users can upload the pictures wherever they want. How to take photos and upload them on a computer 1. Mac computer 1. Open Finder and click the application on the left. 2. After opening, click the Camera application. 3. Just click the photo button below. 2. Windows computer 1. Open the search box below and enter camera. 2. Then open the searched application. 3. Click the photo button next to it.

Upload speed becomes very slow? I believe this is a problem that many friends will encounter when uploading things on their computers. If the network is unstable when using a computer to transfer files, the upload speed will be very slow. So how can I increase the network upload speed? Below, the editor will tell you how to solve the problem of slow computer upload speed. When it comes to network speed, we all know that the speed of opening web pages, download speed, and upload speed are also very critical. Especially some users often need to upload files to the network disk, so a fast upload speed will undoubtedly save you a lot of money. Less time, what should I do if the upload speed is slow? Below, the editor brings you pictures and texts on how to deal with slow computer upload speeds. How to solve the problem of slow computer upload speed? Click "Start--Run" or "Window key"

How to implement video playback and upload functions through the PHP Kuaishou API interface. Introduction: With the rise of social media, the public’s demand for video content has gradually increased. Kuaishou, as a short video-themed social application, is loved by many users. This article will introduce how to use PHP to write code to implement video playback and upload functions through the Kuaishou API interface. 1. Obtain the access token. Before using the Kuaishou API interface, you first need to obtain the access token. Token is the identity for accessing the API interface
