Cocoa:PhotoshopImage 类和调整大小

发布于 2024-10-07 10:51:53 字数 94 浏览 3 评论 0原文

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

Does anyone knows how i can resize the PhotoshopImage instance?
I don't us the UIImageView because i need to load a lot of images and the PhotoshopImage class handles it better.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

掩耳倾听 2024-10-14 10:51:53

给你一个真正不稳定的开始! 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# 的老手!我让这段代码可以在我的 Windows 机器上用 C# 运行。这段代码启动了一个网页并启动了我的 Photoshop cs3 版本,并遍历我的文件目录并创建了一个“Adobe 图像库”。祝你好运,并回发你在 Objective-C 中找到的内容...我认为 Objective-C 可以运行本机 C,并且我已经看到了一些在本机 C 中使用 Photoshop 的文档...无论哪种方式都可以发回一些代码。 ..我是一个半新手,所以如果这不是您所说的 Photoshop Image 的意思,我深表歉意!
CDUB
PS这些都是曝光的Photoshop方法,不是我编造的……

使用系统;

使用 System.Collections.Generic;

使用 System.Linq;

使用系统.Web;

使用 System.Web.UI;

使用 System.Web.UI.WebControls;

使用 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:\Users\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()); }




    }
}

使用系统

使用 System.Collections.Generic;

使用 System.Linq;

使用系统.Web;

使用 System.Web.UI;

使用 System.Web.UI.WebControls;

使用 ps = Photoshop;

使用 Photoshop;

使用 Microsoft.Win32.SafeHandles;

使用 Microsoft.Win32;

使用微软;

命名空间 Photoshop

{
公共委托 void 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();
    }

//等等...这些接口公开了大量可以显式实现的方法
//这还不是全部

Got a real shaky start for you! Photoshop has documentation on using javascript vbscript with photoshop dll's: http://www.adobe.com/devnet/photoshop/scripting.html. These same methods are exposed via COM to C# and I wonder if they're available to Objective-C (RedGate and the vs object browser can help if you dabble with it). Don't cringe at the C# code! The point is photoshop exposes dlls which can be worked with. C# ASP.NET exposes photoshop .dll's via COM. I'm new to objective-c and not a vet at C#! I got this code to work on my windows machine in C#. This code cranks up a web page and fires up my version of photoshop cs3 and goes thru my directory of files and creates an "Adobe image gallery". Good luck to you and post back what you find in objective-c...I think objective-c can run native C and I've seen some documentation of working with photoshop in native C...Shoot some code back either way...I'm a semi newbie so if this wasn't what you meant by Photoshop Image I apologize!
CDUB
PS these are all photoshop methods being exposed, nothing I made up...

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using GoogleTalkAPILib;

using ps = Photoshop;

using Photoshop;

namespace 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:\Users\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;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using ps = Photoshop;

using Photoshop;

using Microsoft.Win32.SafeHandles;

using Microsoft.Win32;

using Microsoft;

namespace photoshop

{
public delegate void 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();
    }

//etc... these interfaces expose a ton of methods which can be explicity implemented
//this isn't them all

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文