motion-image-editor 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/project/views/image_editor_view.rb +7 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6ccff9787beca04e2de4355ad6e32135472f3ce
|
4
|
+
data.tar.gz: fc79ef50fd37a917edc0e69026391c26442fd9f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7107a52cc324c10c1b6623acaa52bcf7dd743583e48c535dd971f3f5f941c8968ad828c90dda486802c2feff16a229885a9915b723b8de039302c6904fd5632c
|
7
|
+
data.tar.gz: 8a0cc36ffc7a9eefe9b90aa0d328a170344555f0403f23dbafa3ee81a4099f629070317bb3412e32b09e549fcae79810dec718ba0d927ec949c74d8f4d29155c
|
@@ -32,6 +32,12 @@ class Motion; class ImageEditorView < UIView
|
|
32
32
|
def crop_rect=(rect)
|
33
33
|
@crop_rect = CGRectOffset(rect, frame.origin.x, frame.origin.y)
|
34
34
|
|
35
|
+
setNeedsDisplay
|
36
|
+
end
|
37
|
+
|
38
|
+
def drawRect(rect)
|
39
|
+
super
|
40
|
+
|
35
41
|
UIGraphicsBeginImageContextWithOptions(bounds.size, false, 0.0)
|
36
42
|
|
37
43
|
context = UIGraphicsGetCurrentContext()
|
@@ -40,7 +46,7 @@ class Motion; class ImageEditorView < UIView
|
|
40
46
|
UIRectFill(bounds)
|
41
47
|
|
42
48
|
UIColor.clearColor.setFill
|
43
|
-
UIRectFill(CGRectInset(
|
49
|
+
UIRectFill(CGRectInset(crop_rect, 1, 1))
|
44
50
|
|
45
51
|
image_view.image = UIGraphicsGetImageFromCurrentImageContext()
|
46
52
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-image-editor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Devon Blandin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: motion-cocoapods
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
version: '0'
|
70
70
|
requirements: []
|
71
71
|
rubyforge_project:
|
72
|
-
rubygems_version: 2.1.
|
72
|
+
rubygems_version: 2.1.3
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Easily scale, rotate, and crop images
|