2010-12-14 88 views
0

有谁知道我可以如何调整PhotoshopImage实例的大小? 我不是我们的UIImageView,因为我需要加载大量的图像,PhotoshopImage类可以更好地处理它。可可:PhotoshopImage类和调整大小

+0

PhotoshopImage? – 2010-12-14 20:08:39

+0

不知道你在说什么。 PhotoshopImage是您创建的私人课程还是什么? – Chuck 2010-12-14 20:13:56

回答

-1

为您实现了一个真正不稳定的开始! Photoshop有关于使用javascript vbscript和photoshop dll的文档:http://www.adobe.com/devnet/photoshop/scripting.html。这些相同的方法通过COM暴露给C#,我不知道它们是否可用于Objective-C(RedGate和vs对象浏览器可以帮助你,如果你涉足)。不要畏惧C#代码!这一点是Photoshop公开可以与之合作的dll。 C#ASP.NET通过COM公开photoshop .dll的。我是新来的Objective-C,而不是C#的兽医!我得到了这个代码在C#中的Windows机器上工作。这段代码打开了一个网页,启动我的版本的Photoshop CS3,并通过我的文件目录,并创建一个“Adobe图片库”。祝你好运,并发布你在objective-c中找到的东西......我认为objective-c可以运行本地C,并且我已经看到了一些在本地C中使用photoshop的文档......以某种方式向后回放一些代码。 ..我是一个半新手,所以如果这不是你说的Photoshop意思,我很抱歉!
CDUB PS这些都是曝光的photoshop方法,没有我编造...

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using GoogleTalkAPILib;

使用ps = Photoshop;

使用Photoshop;

命名空间的Photoshop

{

public partial class _Default : System.Web.UI.Page 
{ 
    protected void Page_Load(object sender, EventArgs e) 
    { 
     try 
     { 

       Object ob= null; 


      //works!!!!!! 
      // co.Application.MakePDFPresentation(oaa, 

“C:\用户\ Photoshoptryrescl”,OB);

  //you can also use c# to run a javascript 
      // co.DoJavaScript("hey.js",e,d); 


      co.MakePhotoGallery(oab, "C:\\photoshopdump", ob); 

     } 
     catch (Exception ex) 
     { Trace.Write(ex.Message.ToString()); } 




    } 
} 

}

使用系统;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

使用ps = Photoshop;

使用Photoshop;

使用Microsoft.Win32。SafeHandles;

using Microsoft.Win32;

使用Microsoft;

命名空间的Photoshop

{ 公共委托无效addBlur();

public class Class1 : ApplicationClass, ArtLayer, Document 

{ 

    public Class1() 
    { } 
    public void addBlur() 
    { } 
    public void addBlur1(string sa) 
    { } 

    #region ArtLayer Members 

    public void AdjustBrightnessContrast(int Brightness, int Contrast) 
    { 
     throw new NotImplementedException(); 
    } 

    public void AdjustColorBalance(object Shadows, object Midtones, object Highlights, object PreserveLuminosity) 
    { 
     throw new NotImplementedException(); 
    } 

    public void AdjustCurves(object CurveShape) 
    { 
     throw new NotImplementedException(); 
    } 

    public void AdjustLevels(int InputRangeStart, int InputRangeEnd, double InputRangeGamma, int OutputRangeStart, int OutputRangeEnd) 
    { 
     throw new NotImplementedException(); 
    } 

    public bool AllLocked 
    { 
     get 
     { 
      throw new NotImplementedException(); 
     } 
     set 
     { 
      throw new NotImplementedException(); 
     } 
    } 

    public void ApplyAddNoise(double Amount, PsNoiseDistribution Distribution, bool Monochromatic) 
    { 
     throw new NotImplementedException(); 
    } 

    public void ApplyAverage() 
    { 
     throw new NotImplementedException(); 
    } 

    public void ApplyBlur() 
    { 
     // throw new NotImplementedException(); 
    } 

    public void ApplyBlurMore() 
    { 
     throw new NotImplementedException(); 
    } 

//等等......这些接口暴露一吨的方法可以明确地实现 //这是不是他们都

+0

你的C#代码是如何回答他的iOS问题的? – 2011-01-07 01:01:54

+0

我忽略了photoshop也支持applescript ...不知道这是否有帮助。上面代码的关键是从接口继承并使用它们相应的方法。看看那个文档 – CDUB 2011-01-07 01:14:29

+0

我开始用那么多代码...这是一个不稳定的开始!事实上,你可以用这些dll的文档指定的方式以外的任何人应该让任何人了解面向对象的编程,接口等......在正确的轨道上! – CDUB 2011-01-07 01:17:30