Coder Social home page Coder Social logo

com.falkolab.maskedimage's Introduction

Masked Image commonjs module

screenshot1

Quick Start

Get it

gitTio

Download the latest distribution ZIP-file and consult the Titanium Documentation on how install it, or simply use the gitTio CLI:

$ gittio install com.falkolab.maskedimage

Usage

This module provide support form masking images for both iOS and Android.

For android support you must additionaly install miga.tintimage module.

$ gittio install miga.tintimage

Also you must install com.geraudbourdin.svgview if you planing to use SVG masks.

For test purposes you can use demo masks from this repository.

For both platform you can use mode attribute as string from list:

  • clear
  • darken
  • dst_atop
  • dst_in
  • dst_out
  • dst_over
  • lighten
  • multiply
  • overlay
  • screen
  • src_atop
  • src_in
  • src_out
  • xor

Or MaskedImage titanium ui view mode attribute constants (only for ios).

Example

<Alloy>
	<Window class="container" backgroundColor="#45474F">		
		<View width="300" height="240">					
			<MaskedImage module="com.falkolab.maskedimage"
				image="/images/freewilly.jpg"
				mask="/images/mask.svg"					
				mode="src_in"
				/>			
		</View>			
	</Window>
</Alloy>

Give me a star if the widget was useful for you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.