The image columns, rows The width and height of the rectangle map A string describing the expected Arguments x, y The offset of the rectangle from the upper-left corner of Import_pixels is ideal for loading very largeĪmounts of binary pixel data. When the pixels argument is an array of pixel data, this Replaces the pixels in the specified rectangle with pixelĭata from the supplied array or string. Img.get_iptc_dataset(Magick::IPTC::Application::Keywords) Post_ObjectData_Descriptor::Confirmed_ObjectData_Size Pre_ObjectData_Descriptor::Maximum_ObjectData_Size Pre_ObjectData_Descriptor::ObjectData_Size_Announced Pre_ObjectData_Descriptor::Max_Subfile_Size ConstantĪpplication::Country_Primary_Location_CodeĪpplication::Country_Primary_Location_NameĪpplication::Original_Transmission_ReferenceĪpplication::ObjectData_Preview_File_FormatĪpplication::ObjectData_Preview_File_Format_Version Notice that some DataSets have two names. All the constants are in the Magick::IPTC RMagick defines the following constants for use as arguments Nil if the DataSet is not used or the data field Retrieves the data field for the specified DataSet, or Which means that the pixel values will be stored as Cĭispatch, export_pixels, import_pixels, get_pixels Magick API Value that specifies the C datatype to which the pixel data M = magenta, K = black, I = intensity (for grayscale), or P = = red, G = green, B = blue, A = alpha, C = cyan, Y = yellow, map A string that describes which pixel channel data isĭesired and the order in which it should be stored. columns, rows The width and height of the rectangle. Note: You can also use to_blob to convert an image into a The string returned by export_pixels_to_str is This method is much, much faster than export_pixels or get_pixels. Memory buffer (as input to another application, for example), Extracts the pixel data from the specified rectangle and
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |