A Titanium iOS module for upscaling images for retina display using hq2x algorithm
C Objective-C Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Classes
assets
documentation
example
hooks
hqx
platform
tihqx.xcodeproj
.gitignore
LICENSE
NetIamyellowTihqx_Prefix.pch
build.py
manifest
module.xcconfig
net.iamyellow.tihqx-iphone-0.1.zip
readme.md
timodule.xml
titanium.xcconfig

readme.md

tihqx Module

Description

This is a module I made for a personal project that had to download and show remote images with no retina version. I decided to upscale them with hq2x, a fast, high-quality 2x magnification filter, used by lot 8/16-bit console emulators -demo images can be found here-. Maybe there're many other ways to handle this, but hey! I love these things.

Just:

var hqx = require('net.iamyellow.tihqx'),
window = Ti.UI.createWindow({
	backgroundColor: 'red'
});

// as a view
var image = require('net.iamyellow.tihqx').createView({
	top: 0, left: 0,
	image: 'hqx_orig.png'
}),
// base64 encoded images
image2 = require('net.iamyellow.tihqx').createView({
	top: 0, right: 0,
	base64: 'data:;base64,BASE64_ENCODED_IMAGE_STRING'
});
window.add(image);
window.add(image2);

// using a blob
var src = Ti.UI.createImageView({
	image: 'hqx_orig.png'
}),
dst = Ti.UI.createImageView({
	bottom: 0, left: 0,
	image: hqx.get2xBlob(src.toBlob())
});
window.add(dst);

window.open();```

## Author

jordi domenech
jordi@iamyellow.net
http://iamyellow.net
@iamyellow2

## Feedback and Support

jordi@iamyellow.net

## License

Copyright 2012 jordi domenech <jordi@iamyellow.net>
Apache License, Version 2.0