GifFrameBlock
Inheritance: java.lang.Object, com.aspose.imaging.DisposableObject, com.aspose.imaging.DataStreamSupporter, com.aspose.imaging.Image, com.aspose.imaging.RasterImage, com.aspose.imaging.RasterCachedImage
All Implemented Interfaces: com.aspose.imaging.fileformats.gif.IGifBlock, com.aspose.imaging.IAnimationFrame, com.aspose.fileformats.core.interfaces.IInterlaced
public final class GifFrameBlock extends RasterCachedImage implements IGifBlock, IAnimationFrame, IInterlaced
كتلة إطار GIF.
المنشئات
الحقول
| حقل | الوصف |
|---|---|
| EXTENSION_LABEL | تسمية امتداد الكتلة. |
| IMAGE_DESCRIPTOR_SIZE | حجم موصّف الصورة. |
الطرق
| طريقة | الوصف |
|---|---|
| getColorPalette(IColorPalette framePalette, IColorPalette containerPalette) | يحصل على لوحة الألوان المرتبطة. |
| createFlags(IColorPalette colorPalette, boolean isPaletteSorted, boolean isGifFrameInterlaced) | ينشئ العلامات. |
| getFileFormat() | يحصل على قيمة تنسيق الملف |
| getWidth() | يحصل على عرض الصورة. |
| getHeight() | يحصل على ارتفاع الصورة. |
| getBitsPerPixel() | يحصل على عدد بتات الصورة لكل بكسل. |
| getFrameTime() | يحصل على المدة. |
| setFrameTime(int value) | يضبط المدة. |
| getInterlaced() | يحصل أو يضبط قيمة تشير إلى ما إذا كان هذا GifFrameBlock متشابك. |
| isInterlaced() | يحصل على قيمة تشير إلى ما إذا كانت نسخة الصورة هذه متشابكة. |
| setInterlaced(boolean value) | يحصل أو يضبط قيمة تشير إلى ما إذا كان هذا GifFrameBlock متشابك. |
| isPaletteSorted() | يحصل أو يضبط قيمة تشير إلى ما إذا كانت لوحة الألوان مرتبة. |
| setPaletteSorted(boolean value) | يحصل أو يضبط قيمة تشير إلى ما إذا كانت لوحة الألوان مرتبة. |
| getGifFrameBitsPerPixel() | يحصل أو يضبط بتات إطار GIF لكل بكسل. |
| setGifFrameBitsPerPixel(byte value) | يحصل أو يضبط بتات إطار GIF لكل بكسل. |
| getLeft() | يحصل أو يضبط موقع الصورة اليساري. |
| setLeft(int value) | يحصل أو يضبط موقع الصورة اليساري. |
| getTop() | يحصل أو يضبط موقع الصورة العلوي. |
| setTop(int value) | يحصل أو يضبط موقع الصورة العلوي. |
| getFrameTop() | يحوّل إلى p. |
| getFrameLeft() | يحصل على اليسار. |
| getDisposalMethod() | يحصل على طريقة التخلص. |
| getFlags() | يحصل أو يضبط العلامات. |
| setFlags(byte value) | يحصل أو يضبط العلامات. |
| isUseAlphaBlending() | يحصل على قيمة تشير إلى ما إذا كان [use alpha blending]. |
| getControlBlock() | يحصل على كتلة التحكم الرسومية المرتبطة بهذه الكتلة. |
| hasTransparentColor() | يحصل على قيمة تشير إلى ما إذا كان كتلة الإطار تحتوي على لون شفاف. |
| getTransparentColor() | يحصل على اللون الشفاف لكتلة الإطار. |
| setTransparentColor(boolean value) | يحصل على قيمة تشير إلى ما إذا كان كتلة الإطار تحتوي على لون شفاف. |
| setTransparentColor(Color value) | يحصل على اللون الشفاف لكتلة الإطار. |
| getBackgroundColor() | يحصل على قيمة لون الخلفية. |
| setBackgroundColor(Color value) | يضبط قيمة لون الخلفية. |
| getOriginalOptions() | يحصل على الخيارات بناءً على إعدادات الملف الأصلي. |
| adjustBrightness(int brightness) | ضبط سطوع الصورة. |
| replaceColor(int oldColorArgb, byte oldColorDiff, int newColorArgb) | يستبدل لونًا بآخر مع فرق مسموح به ويحافظ على قيمة ألفا الأصلية للحفاظ على حواف ناعمة. |
| replaceNonTransparentColors(int newColorArgb) | يستبدل جميع الألوان غير الشفافة بلون جديد ويحافظ على قيمة ألفا الأصلية للحفاظ على حواف ناعمة. |
| getFullFrame() | يحصل على الإطار الكامل. |
| resize(int newWidth, int newHeight, ImageResizeSettings imageResizeSettings) | يعيد تحجيم هذا RasterCachedImage المثيل. |
GifFrameBlock(int width, int height)
public GifFrameBlock(int width, int height)
ينشئ مثيلاً جديدًا من الفئة GifFrameBlock.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| العرض | int | عرض الصورة. |
| الارتفاع | int | ارتفاع الصورة. |
GifFrameBlock(int left, int top, int width, int height)
public GifFrameBlock(int left, int top, int width, int height)
ينشئ مثيلاً جديدًا من الفئة GifFrameBlock.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| يسار | int | موضع الصورة اليساري. |
| أعلى | int | موضع الصورة العلوي. |
| العرض | int | عرض الصورة. |
| الارتفاع | int | ارتفاع الصورة. |
GifFrameBlock(int left, int top, int width, int height, IColorPalette colorPalette, boolean isPaletteSorted, boolean isGifFrameInterlaced, byte bitsPerPixel)
public GifFrameBlock(int left, int top, int width, int height, IColorPalette colorPalette, boolean isPaletteSorted, boolean isGifFrameInterlaced, byte bitsPerPixel)
ينشئ مثيلاً جديدًا من الفئة GifFrameBlock.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| يسار | int | موضع الصورة اليساري. |
| أعلى | int | موضع الصورة العلوي. |
| العرض | int | عرض الصورة. |
| الارتفاع | int | ارتفاع الصورة. |
| colorPalette | IColorPalette | لوحة الألوان. |
| isPaletteSorted | boolean | إذا تم تعيينه إلى true يتم فرز لوحة الألوان. |
| isGifFrameInterlaced | boolean | إذا تم تعيينه إلى true يكون إطار GIF متشابكًا. |
| bitsPerPixel | byte | عدد البتات لكل بكسل. |
GifFrameBlock(RasterImage image)
public GifFrameBlock(RasterImage image)
ينشئ مثيلاً جديدًا من الفئة GifFrameBlock.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| image | RasterImage | الصورة لتتهيئة بيانات بكسل الإطار ولوحة الألوان بها. |
GifFrameBlock(RasterImage image, int left, int top)
public GifFrameBlock(RasterImage image, int left, int top)
ينشئ مثيلاً جديدًا من الفئة GifFrameBlock.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| image | RasterImage | الصورة لتتهيئة بيانات بكسل الإطار ولوحة الألوان بها. |
| يسار | int | موضع الصورة اليساري. |
| أعلى | int | موضع الصورة العلوي. |
GifFrameBlock(RasterImage image, int left, int top, boolean isPaletteSorted, boolean isGifFrameInterlaced, byte lzwCodeSize)
public GifFrameBlock(RasterImage image, int left, int top, boolean isPaletteSorted, boolean isGifFrameInterlaced, byte lzwCodeSize)
ينشئ مثيلاً جديدًا من الفئة GifFrameBlock.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| image | RasterImage | الصورة لتتهيئة بيانات بكسل الإطار ولوحة الألوان بها. |
| يسار | int | موضع الصورة اليساري. |
| أعلى | int | موضع الصورة العلوي. |
| isPaletteSorted | boolean | إذا تم تعيينه إلى true يتم فرز لوحة الألوان. |
| isGifFrameInterlaced | boolean | إذا تم تعيينه إلى true يكون إطار GIF متشابكًا. |
| lzwCodeSize | byte | عدد البتات لكل بكسل. |
GifFrameBlock(InputStream stream)
public GifFrameBlock(InputStream stream)
ينشئ مثيلاً جديدًا من الفئة GifFrameBlock.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| التدفق | java.io.InputStream | دفق التحميل للصورة وتتهيئة بيانات بكسل الإطار ولوحة الألوان باستخدامه. |
GifFrameBlock(System.IO.Stream stream)
public GifFrameBlock(System.IO.Stream stream)
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| التدفق | com.aspose.ms.System.IO.Stream |
GifFrameBlock(InputStream stream, int left, int top)
public GifFrameBlock(InputStream stream, int left, int top)
ينشئ مثيلاً جديدًا من الفئة GifFrameBlock.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| التدفق | java.io.InputStream | دفق التحميل للصورة وتتهيئة بيانات بكسل الإطار ولوحة الألوان باستخدامه. |
| يسار | int | موضع الصورة اليساري. |
| أعلى | int | موضع الصورة العلوي. |
GifFrameBlock(InputStream stream, int left, int top, boolean isPaletteSorted, boolean isGifFrameInterlaced, byte lzwCodeSize)
public GifFrameBlock(InputStream stream, int left, int top, boolean isPaletteSorted, boolean isGifFrameInterlaced, byte lzwCodeSize)
ينشئ مثيلاً جديدًا من الفئة GifFrameBlock.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| التدفق | java.io.InputStream | دفق التحميل للصورة وتتهيئة بيانات بكسل الإطار ولوحة الألوان باستخدامه. |
| يسار | int | موضع الصورة اليساري. |
| أعلى | int | موضع الصورة العلوي. |
| isPaletteSorted | boolean | إذا تم تعيينه إلى true يتم فرز لوحة الألوان. |
| isGifFrameInterlaced | boolean | إذا تم تعيينه إلى true يكون إطار GIF متشابكًا. |
| lzwCodeSize | byte | عدد البتات لكل بكسل. |
GifFrameBlock(String path)
public GifFrameBlock(String path)
ينشئ مثيلاً جديدًا من الفئة GifFrameBlock.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| المسار | java.lang.String | المسار لتحميل الصورة وتتهيئة بيانات بكسل الإطار ولوحة الألوان باستخدامه. |
GifFrameBlock(String path, int left, int top)
public GifFrameBlock(String path, int left, int top)
ينشئ مثيلاً جديدًا من الفئة GifFrameBlock.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| المسار | java.lang.String | المسار لتحميل الصورة وتتهيئة بيانات بكسل الإطار ولوحة الألوان باستخدامه. |
| يسار | int | موضع الصورة اليساري. |
| أعلى | int | موضع الصورة العلوي. |
GifFrameBlock(String path, int left, int top, boolean isPaletteSorted, boolean isGifFrameInterlaced, byte lzwCodeSize)
public GifFrameBlock(String path, int left, int top, boolean isPaletteSorted, boolean isGifFrameInterlaced, byte lzwCodeSize)
ينشئ مثيلاً جديدًا من الفئة GifFrameBlock.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| المسار | java.lang.String | المسار لتحميل الصورة وتتهيئة بيانات بكسل الإطار ولوحة الألوان باستخدامه. |
| يسار | int | موضع الصورة اليساري. |
| أعلى | int | موضع الصورة العلوي. |
| isPaletteSorted | boolean | إذا تم تعيينه إلى true يتم فرز لوحة الألوان. |
| isGifFrameInterlaced | boolean | إذا تم تعيينه إلى true يكون إطار GIF متشابكًا. |
| lzwCodeSize | byte | عدد البتات لكل بكسل. |
EXTENSION_LABEL
public static final int EXTENSION_LABEL
تسمية امتداد الكتلة.
IMAGE_DESCRIPTOR_SIZE
public static final int IMAGE_DESCRIPTOR_SIZE
حجم موصّف الصورة.
getColorPalette(IColorPalette framePalette, IColorPalette containerPalette)
public static IColorPalette getColorPalette(IColorPalette framePalette, IColorPalette containerPalette)
يحصل على لوحة الألوان المرتبطة.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| framePalette | IColorPalette | لوحة الإطار. |
| containerPalette | IColorPalette | لوحة الحاوية. |
Returns: IColorPalette - The color palette.
createFlags(IColorPalette colorPalette, boolean isPaletteSorted, boolean isGifFrameInterlaced)
public static byte createFlags(IColorPalette colorPalette, boolean isPaletteSorted, boolean isGifFrameInterlaced)
ينشئ العلامات.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| colorPalette | IColorPalette | لوحة الألوان. |
| isPaletteSorted | boolean | إذا تم تعيينه إلى true يتم فرز الألوان في لوحة الألوان. |
| isGifFrameInterlaced | boolean | إذا تم تعيينه إلى true تكون صورة إطار GIF متشابكة. |
Returns: byte - العلامات التي تم إنشاؤها.
getFileFormat()
public long getFileFormat()
يحصل على قيمة تنسيق الملف
Returns: long
getWidth()
public int getWidth()
يحصل على عرض الصورة.
Returns: int - عرض الصورة.
getHeight()
public int getHeight()
يحصل على ارتفاع الصورة.
Returns: int - ارتفاع الصورة.
getBitsPerPixel()
public int getBitsPerPixel()
يحصل على عدد بتات الصورة لكل بكسل.
Returns: int - عدد بتات الصورة لكل بكسل.
getFrameTime()
public int getFrameTime()
يحصل على المدة.
القيمة: المدة بالمللي ثانية.
Returns: int - المدة.
setFrameTime(int value)
public void setFrameTime(int value)
يضبط المدة.
القيمة: المدة بالمللي ثانية.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| القيمة | int | المدة. |
getInterlaced()
public boolean getInterlaced()
يحصل أو يضبط قيمة تشير إلى ما إذا كان هذا GifFrameBlock متشابك.
Returns:
boolean - true إذا كان متشابكًا؛ وإلا false.
isInterlaced()
public boolean isInterlaced()
يحصل على قيمة تشير إلى ما إذا كانت نسخة الصورة هذه متشابكة.
القيمة: true إذا كانت نسخة الصورة هذه متشابكة؛ وإلا false.
Returns: boolean - قيمة تشير إلى ما إذا كانت نسخة الصورة هذه متشابكة.
setInterlaced(boolean value)
public void setInterlaced(boolean value)
يحصل أو يضبط قيمة تشير إلى ما إذا كان هذا GifFrameBlock متشابك.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| القيمة | boolean | true إذا كان متشابكًا؛ وإلا false. |
isPaletteSorted()
public boolean isPaletteSorted()
يحصل أو يضبط قيمة تشير إلى ما إذا كانت لوحة الألوان مرتبة.
Returns:
boolean - true إذا كانت لوحة الألوان مرتبة؛ وإلا false.
setPaletteSorted(boolean value)
public void setPaletteSorted(boolean value)
يحصل أو يضبط قيمة تشير إلى ما إذا كانت لوحة الألوان مرتبة.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| القيمة | boolean | true إذا كانت لوحة الألوان مرتبة؛ وإلا false. |
getGifFrameBitsPerPixel()
public byte getGifFrameBitsPerPixel()
يحصل أو يضبط بتات إطار GIF لكل بكسل.
Returns: byte - بتات إطار GIF لكل بكسل.
setGifFrameBitsPerPixel(byte value)
public void setGifFrameBitsPerPixel(byte value)
يحصل أو يضبط بتات إطار GIF لكل بكسل.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| القيمة | byte | بتات إطار GIF لكل بكسل. |
getLeft()
public int getLeft()
يحصل أو يضبط موقع الصورة اليساري.
Returns: int - موقع الصورة الأيسر.
setLeft(int value)
public void setLeft(int value)
يحصل أو يضبط موقع الصورة اليساري.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| القيمة | int | موقع الصورة الأيسر. |
getTop()
public int getTop()
يحصل أو يضبط موقع الصورة العلوي.
Returns: int - موقع الصورة العلوي.
setTop(int value)
public void setTop(int value)
يحصل أو يضبط موقع الصورة العلوي.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| القيمة | int | موقع الصورة العلوي. |
getFrameTop()
public int getFrameTop()
يحوّل إلى p.
القيمة: الأعلى.
Returns: int
getFrameLeft()
public int getFrameLeft()
يحصل على اليسار.
القيمة: اليسار.
Returns: int - اليسار.
getDisposalMethod()
public int getDisposalMethod()
يحصل على طريقة التخلص.
Returns: int - طريقة التخلص.
getFlags()
public byte getFlags()
يحصل أو يضبط العلامات.
Returns: byte - العلامات.
setFlags(byte value)
public void setFlags(byte value)
يحصل أو يضبط العلامات.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| القيمة | byte | العلامات. |
isUseAlphaBlending()
public boolean isUseAlphaBlending()
يحصل على قيمة تشير إلى ما إذا كان [use alpha blending].
القيمة: true إذا [use alpha blending]؛ وإلا false.
Returns: boolean - قيمة تشير إلى ما إذا كان [use alpha blending].
getControlBlock()
public GifGraphicsControlBlock getControlBlock()
يحصل على كتلة التحكم الرسومية المرتبطة بهذه الكتلة.
Returns: GifGraphicsControlBlock - The control block.
hasTransparentColor()
public boolean hasTransparentColor()
يحصل على قيمة تشير إلى ما إذا كان كتلة الإطار تحتوي على لون شفاف.
Returns: boolean
getTransparentColor()
public Color getTransparentColor()
يحصل على اللون الشفاف لكتلة الإطار.
Returns: Color
setTransparentColor(boolean value)
public void setTransparentColor(boolean value)
يحصل على قيمة تشير إلى ما إذا كان كتلة الإطار تحتوي على لون شفاف.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| القيمة | boolean |
setTransparentColor(Color value)
public void setTransparentColor(Color value)
يحصل على اللون الشفاف لكتلة الإطار.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| value | Color |
getBackgroundColor()
public Color getBackgroundColor()
يحصل على قيمة لون الخلفية.
Returns: Color - a value for the background color.
setBackgroundColor(Color value)
public void setBackgroundColor(Color value)
يضبط قيمة لون الخلفية.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| value | Color | قيمة للون الخلفية. |
getOriginalOptions()
public ImageOptionsBase getOriginalOptions()
يحصل على الخيارات بناءً على إعدادات الملف الأصلي. يمكن أن يكون ذلك مفيدًا للحفاظ على عمق البت وغيرها من معلمات الصورة الأصلية دون تغيير. على سبيل المثال، إذا قمنا بتحميل صورة PNG بالأبيض والأسود بعمق 1 بت لكل بكسل ثم حفظناها باستخدام طريقة DataStreamSupporter.save(String)، سيتم إنتاج صورة PNG ناتجة بعمق 8 بت لكل بكسل. لتجنب ذلك وحفظ صورة PNG بعمق 1 بت لكل بكسل، استخدم هذه الطريقة للحصول على خيارات الحفظ المقابلة ومررها إلى طريقة Image.save(String, ImageOptionsBase) كمعامل ثانٍ.
Returns: ImageOptionsBase - The options based on the original file settings.
adjustBrightness(int brightness)
public void adjustBrightness(int brightness)
ضبط سطوع الصورة.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| brightness | int | قيمة السطوع. |
replaceColor(int oldColorArgb, byte oldColorDiff, int newColorArgb)
public void replaceColor(int oldColorArgb, byte oldColorDiff, int newColorArgb)
يستبدل لونًا بآخر مع فرق مسموح به ويحافظ على قيمة ألفا الأصلية للحفاظ على حواف ناعمة.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| oldColorArgb | int | قيمة ARGB للون القديم التي سيتم استبدالها. |
| oldColorDiff | byte | الفرق المسموح به في اللون القديم لتمكين توسيع نغمة اللون المستبدل. |
| newColorArgb | int | قيمة ARGB للون الجديد لاستبدال اللون القديم بها. |
replaceNonTransparentColors(int newColorArgb)
public void replaceNonTransparentColors(int newColorArgb)
يستبدل جميع الألوان غير الشفافة باللون الجديد ويحافظ على قيمة ألفا الأصلية للحفاظ على حواف ناعمة. ملاحظة: إذا استخدمتها على صور بدون شفافية، سيتم استبدال جميع الألوان بلون واحد.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| newColorArgb | int | قيمة ARGB للون الجديد لاستبدال الألوان غير الشفافة بها. |
getFullFrame()
public RasterImage getFullFrame()
يحصل على الإطار الكامل.
Returns: RasterImage - he RasterImage with full frame
resize(int newWidth, int newHeight, ImageResizeSettings imageResizeSettings)
public void resize(int newWidth, int newHeight, ImageResizeSettings imageResizeSettings)
يعيد تحجيم هذا RasterCachedImage المثيل.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| newWidth | int | العرض الجديد. |
| newHeight | int | الارتفاع الجديد. |
| imageResizeSettings | ImageResizeSettings | إعدادات تغيير الحجم. |