Image() and CreateProgramFromData()

Home Forums General Programming Image() and CreateProgramFromData()

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31374
    zeoka
    Participant
      • Topics: 73
      • Replies: 466
      • Total: 539
      • ★★★

      Hi

      I have trouble with a function : I would take a part of an image to reproduce frame paint

         -- g:drawImage( mk2img:rescaled (96,12288 ,Graphics.highResamplingQuality),0,0,96,96,0,vl * 96,96,96,false)
      -- this is working n 
      -- 
      
         --  mk2img:rescaled (96,12288 ,Graphics.highResamplingQuality)
               hi = Rectangle(0,vl * 96 ,96,96)
            -- mk3 = mk2img:getClippedImage(hi)  <strong>this is the function I don't get  yet</strong>
      
         
      
      g:reduceClipRegion (mk3, AffineTransform())
            g:setColour(Colour(0xFF181818))
               g:fillRect(0,0,96,96)

      and would like to know what is the 2 ints in CreateProgramFromData()
      I cant’ get exactly what they are with how()
      after how to get some data from program
      panel:getMIDILibrary():…………..?

      Cheers

      #31383
      atom
      Keymaster
        • Topics: 159
        • Replies: 2945
        • Total: 3104
        • ★★★★★

        getClippedImage(): http://www.juce.com/juce/api/classImage.html#a23f8ff9b07d67f2c60776d4031c27417

        As for the Program stuff, don’t use it, it’s not ready and it won’t work.

      Viewing 2 posts - 1 through 2 (of 2 total)
      • The forum ‘Programming’ is closed to new topics and replies.
      There is currently 0 users and 65 guests online
      No users are currently active
      Forum Statistics
      Threads: 2,495, Posts: 17,374, Members: 77,605
      Most users ever online was 12 on January 22, 2019 3:47 pm
      Ctrlr